diff options
author | Michael Davis | 2024-03-17 15:43:35 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2024-03-18 01:34:53 +0000 |
commit | 4ffe9935339a2bd3085720ef6bea62678e9d7e95 (patch) | |
tree | 9ddc56b3c528af3fe2ec3ba63e5b4d53de126a6f /runtime/queries | |
parent | 38af99f05f76dfcdb36e5b498a64b8c39b2fa27a (diff) |
Fix malformed predicates in highlighting queries
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/go/highlights.scm | 4 | ||||
-rw-r--r-- | runtime/queries/julia/highlights.scm | 6 | ||||
-rw-r--r-- | runtime/queries/pkl/highlights.scm | 2 | ||||
-rw-r--r-- | runtime/queries/pkl/injections.scm | 2 | ||||
-rw-r--r-- | runtime/queries/scss/highlights.scm | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/runtime/queries/go/highlights.scm b/runtime/queries/go/highlights.scm index 8eed12af..7dc20e69 100644 --- a/runtime/queries/go/highlights.scm +++ b/runtime/queries/go/highlights.scm @@ -2,7 +2,7 @@ (call_expression function: (identifier) @function.builtin - (match? @function.builtin "^(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)$")) + (#match? @function.builtin "^(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)$")) (call_expression function: (identifier) @function) @@ -19,7 +19,7 @@ name: (identifier) @type.parameter)) ((type_identifier) @type.builtin - (match? @type.builtin "^(any|bool|byte|comparable|complex128|complex64|error|float32|float64|int|int16|int32|int64|int8|rune|string|uint|uint16|uint32|uint64|uint8|uintptr)$")) + (#match? @type.builtin "^(any|bool|byte|comparable|complex128|complex64|error|float32|float64|int|int16|int32|int64|int8|rune|string|uint|uint16|uint32|uint64|uint8|uintptr)$")) (type_identifier) @type diff --git a/runtime/queries/julia/highlights.scm b/runtime/queries/julia/highlights.scm index 90baee21..013f5063 100644 --- a/runtime/queries/julia/highlights.scm +++ b/runtime/queries/julia/highlights.scm @@ -231,7 +231,7 @@ ] @keyword ; TODO: fix this -((identifier) @keyword (match? @keyword "global|local")) +((identifier) @keyword (#match? @keyword "global|local")) ; --------- ; Operators @@ -277,12 +277,12 @@ ; SCREAMING_SNAKE_CASE ( (identifier) @constant - (match? @constant "^[A-Z][A-Z0-9_]*$")) + (#match? @constant "^[A-Z][A-Z0-9_]*$")) ; remaining identifiers that start with capital letters should be types (PascalCase) ( (identifier) @type - (match? @type "^[A-Z]")) + (#match? @type "^[A-Z]")) ; Field expressions are either module content or struct fields. ; Module types and constants should already be captured, so this diff --git a/runtime/queries/pkl/highlights.scm b/runtime/queries/pkl/highlights.scm index 501c9485..1de6ba3c 100644 --- a/runtime/queries/pkl/highlights.scm +++ b/runtime/queries/pkl/highlights.scm @@ -172,7 +172,7 @@ (clazz (identifier) @type) (typeAlias (identifier) @type) ((identifier) @type - (match? @type "^[A-Z]")) + (#match? @type "^[A-Z]")) (typeArgumentList "<" @punctuation.bracket diff --git a/runtime/queries/pkl/injections.scm b/runtime/queries/pkl/injections.scm index 15867f35..c5d2d4ac 100644 --- a/runtime/queries/pkl/injections.scm +++ b/runtime/queries/pkl/injections.scm @@ -18,7 +18,7 @@ ( ((methodCallExpr (identifier) @methodName (argumentList (slStringLiteral) @injection.content)) (#set! injection.language "regex")) - (eq? @methodName "Regex")) + (#eq? @methodName "Regex")) ((lineComment) @injection.content (#set! injection.language "comment")) diff --git a/runtime/queries/scss/highlights.scm b/runtime/queries/scss/highlights.scm index 8ba00a88..de20e047 100644 --- a/runtime/queries/scss/highlights.scm +++ b/runtime/queries/scss/highlights.scm @@ -44,9 +44,9 @@ "@while" @keyword.control.repeat ((property_name) @variable - (match? @variable "^--")) + (#match? @variable "^--")) ((plain_value) @variable - (match? @variable "^--")) + (#match? @variable "^--")) (tag_name) @tag (universal_selector) @tag |