diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2025-05-13 14:47:47 +0200 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-05-13 18:12:58 +0200 |
| commit | 864e75a85d4bbe77745929a1ce4d4c63bef11480 (patch) | |
| tree | 0173a8ddcffc20563e3248c97f0286955255987a /runtime/queries | |
| parent | fix(hcl): remove unnecessary escapes (diff) | |
| download | nvim-treesitter-864e75a85d4bbe77745929a1ce4d4c63bef11480.tar nvim-treesitter-864e75a85d4bbe77745929a1ce4d4c63bef11480.tar.gz nvim-treesitter-864e75a85d4bbe77745929a1ce4d4c63bef11480.tar.bz2 nvim-treesitter-864e75a85d4bbe77745929a1ce4d4c63bef11480.tar.lz nvim-treesitter-864e75a85d4bbe77745929a1ce4d4c63bef11480.tar.xz nvim-treesitter-864e75a85d4bbe77745929a1ce4d4c63bef11480.tar.zst nvim-treesitter-864e75a85d4bbe77745929a1ce4d4c63bef11480.zip | |
fix(c,cpp,fsharp,idl,powershell,sql,systemtap): remove unneeded escapes
Diffstat (limited to 'runtime/queries')
| -rw-r--r-- | runtime/queries/c/injections.scm | 2 | ||||
| -rw-r--r-- | runtime/queries/cpp/injections.scm | 2 | ||||
| -rw-r--r-- | runtime/queries/fsharp/highlights.scm | 2 | ||||
| -rw-r--r-- | runtime/queries/idl/injections.scm | 4 | ||||
| -rw-r--r-- | runtime/queries/powershell/highlights.scm | 2 | ||||
| -rw-r--r-- | runtime/queries/sql/highlights.scm | 2 | ||||
| -rw-r--r-- | runtime/queries/systemtap/highlights.scm | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/runtime/queries/c/injections.scm b/runtime/queries/c/injections.scm index 24634864e..ebedc1ec3 100644 --- a/runtime/queries/c/injections.scm +++ b/runtime/queries/c/injections.scm @@ -9,7 +9,7 @@ (#set! injection.language "re2c")) ((comment) @injection.content - (#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]") + (#lua-match? @injection.content "/[*/][!*/]<?[^a-zA-Z]") (#set! injection.language "doxygen")) ((call_expression diff --git a/runtime/queries/cpp/injections.scm b/runtime/queries/cpp/injections.scm index 1fbc8e131..795e40614 100644 --- a/runtime/queries/cpp/injections.scm +++ b/runtime/queries/cpp/injections.scm @@ -1,7 +1,7 @@ ; inherits: c ((comment) @injection.content - (#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]") + (#lua-match? @injection.content "/[*/][!*/]<?[^a-zA-Z]") (#set! injection.language "doxygen")) (raw_string_literal diff --git a/runtime/queries/fsharp/highlights.scm b/runtime/queries/fsharp/highlights.scm index e400e3522..72168528a 100644 --- a/runtime/queries/fsharp/highlights.scm +++ b/runtime/queries/fsharp/highlights.scm @@ -123,7 +123,7 @@ ((argument_patterns (long_identifier (identifier) @character.special)) - (#lua-match? @character.special "^\_.*")) + (#lua-match? @character.special "^_.*")) (member_defn (method_or_prop_defn diff --git a/runtime/queries/idl/injections.scm b/runtime/queries/idl/injections.scm index e4a286e42..e444fc482 100644 --- a/runtime/queries/idl/injections.scm +++ b/runtime/queries/idl/injections.scm @@ -1,8 +1,8 @@ ((comment) @injection.content - (#lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]") + (#lua-match? @injection.content "/[*/][!*/]<?[^a-zA-Z]") (#set! injection.language "doxygen")) ((comment) @injection.content - (#not-lua-match? @injection.content "/[*\/][!*\/]<?[^a-zA-Z]") + (#not-lua-match? @injection.content "/[*/][!*/]<?[^a-zA-Z]") (#not-lua-match? @injection.content "//@[a-zA-Z]") (#set! injection.language "comment")) diff --git a/runtime/queries/powershell/highlights.scm b/runtime/queries/powershell/highlights.scm index 6081e8f1b..7d334ba2a 100644 --- a/runtime/queries/powershell/highlights.scm +++ b/runtime/queries/powershell/highlights.scm @@ -142,7 +142,7 @@ "$true")) ((variable) @variable.builtin - (#lua-match? @variable.builtin "^\$env:")) + (#lua-match? @variable.builtin "^$env:")) (data_name (simple_name) @constant) diff --git a/runtime/queries/sql/highlights.scm b/runtime/queries/sql/highlights.scm index 67eef18ae..6b4b7026f 100644 --- a/runtime/queries/sql/highlights.scm +++ b/runtime/queries/sql/highlights.scm @@ -42,7 +42,7 @@ (#lua-match? @number "^%d+$")) ((literal) @number.float - (#lua-match? @number.float "^[-]?%d*\.%d*$")) + (#lua-match? @number.float "^[-]?%d*%.%d*$")) (parameter) @variable.parameter diff --git a/runtime/queries/systemtap/highlights.scm b/runtime/queries/systemtap/highlights.scm index d1348dc91..f3484abd2 100644 --- a/runtime/queries/systemtap/highlights.scm +++ b/runtime/queries/systemtap/highlights.scm @@ -43,7 +43,7 @@ "sprintln")) ((identifier) @variable.builtin - (#lua-match? @variable.builtin "^\$+[0-9A-Z_a-z]+\$*$")) + (#lua-match? @variable.builtin "^$+[0-9A-Z_a-z]+$*$")) (shebang_line) @keyword.directive |
