aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/julia/highlights.scm
diff options
context:
space:
mode:
authorMichael Davis2024-03-17 15:43:35 +0000
committerBlaž Hrastnik2024-03-18 01:34:53 +0000
commit4ffe9935339a2bd3085720ef6bea62678e9d7e95 (patch)
tree9ddc56b3c528af3fe2ec3ba63e5b4d53de126a6f /runtime/queries/julia/highlights.scm
parent38af99f05f76dfcdb36e5b498a64b8c39b2fa27a (diff)
Fix malformed predicates in highlighting queries
Diffstat (limited to 'runtime/queries/julia/highlights.scm')
-rw-r--r--runtime/queries/julia/highlights.scm6
1 files changed, 3 insertions, 3 deletions
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