From 168fe16cdd9fd441e27e5554bcd9dc02d07e68be Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Sat, 17 May 2025 21:10:59 -0700 Subject: fix: tidy up some query mistakes Revealed by the capture-less patterns lint --- runtime/queries/erlang/highlights.scm | 4 ++-- runtime/queries/linkerscript/injections.scm | 2 +- runtime/queries/nim_format_string/highlights.scm | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'runtime') diff --git a/runtime/queries/erlang/highlights.scm b/runtime/queries/erlang/highlights.scm index 8bba348d9..4b5b8ee78 100644 --- a/runtime/queries/erlang/highlights.scm +++ b/runtime/queries/erlang/highlights.scm @@ -93,8 +93,8 @@ lhs: _ @constant.macro (#set! priority 101)) -(_preprocessor_directive) @keyword.directive -(#set! priority 99) +((_preprocessor_directive) @keyword.directive + (#set! priority 99)) ; Attributes (pp_include) @keyword.import diff --git a/runtime/queries/linkerscript/injections.scm b/runtime/queries/linkerscript/injections.scm index 51e6d1f6b..2f0e58eb6 100644 --- a/runtime/queries/linkerscript/injections.scm +++ b/runtime/queries/linkerscript/injections.scm @@ -1,2 +1,2 @@ -((comment) +((comment) @injection.content (#set! injection.language "comment")) diff --git a/runtime/queries/nim_format_string/highlights.scm b/runtime/queries/nim_format_string/highlights.scm index fde9e4ba0..02a75e6a3 100644 --- a/runtime/queries/nim_format_string/highlights.scm +++ b/runtime/queries/nim_format_string/highlights.scm @@ -1,5 +1,3 @@ -(string_literal) - (matching_curlies opening_curly: (opening_curly) @punctuation.special equals: (equals)? @punctuation.special -- cgit v1.2.3-70-g09d2