aboutsummaryrefslogtreecommitdiffstats
path: root/queries/julia
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-12-22 13:26:55 -0500
committerStephan Seitz <stephan.seitz@fau.de>2021-12-22 21:17:28 +0100
commit56634f49ab3d8122153c8c5582c581fb6a6af075 (patch)
treea3a131d8e96a5f219193d1e728d2a7ce0ab991aa /queries/julia
parentMarkdown: update queries (diff)
downloadnvim-treesitter-56634f49ab3d8122153c8c5582c581fb6a6af075.tar
nvim-treesitter-56634f49ab3d8122153c8c5582c581fb6a6af075.tar.gz
nvim-treesitter-56634f49ab3d8122153c8c5582c581fb6a6af075.tar.bz2
nvim-treesitter-56634f49ab3d8122153c8c5582c581fb6a6af075.tar.lz
nvim-treesitter-56634f49ab3d8122153c8c5582c581fb6a6af075.tar.xz
nvim-treesitter-56634f49ab3d8122153c8c5582c581fb6a6af075.tar.zst
nvim-treesitter-56634f49ab3d8122153c8c5582c581fb6a6af075.zip
Update queries
- Don't use the old form for predicates - Update some invalid queries
Diffstat (limited to 'queries/julia')
-rw-r--r--queries/julia/highlights.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/queries/julia/highlights.scm b/queries/julia/highlights.scm
index 851298439..c1295622a 100644
--- a/queries/julia/highlights.scm
+++ b/queries/julia/highlights.scm
@@ -3,7 +3,7 @@
;((identifier) @type ; exception: mark `A_foo` sort of identifiers as variables
;(match? @type "^[A-Z][^_]"))
((identifier) @constant
- (match? @constant "^[A-Z][A-Z_]{2}[A-Z_]*$"))
+ (#match? @constant "^[A-Z][A-Z_]{2}[A-Z_]*$"))
[
(triple_string)
@@ -89,11 +89,11 @@
(number) @number
(range_expression
(identifier) @number
- (eq? @number "end"))
+ (#eq? @number "end"))
(range_expression
(_
(identifier) @number
- (eq? @number "end")))
+ (#eq? @number "end")))
(coefficient_expression
(number)
(identifier) @constant.builtin)
@@ -173,9 +173,9 @@
((identifier) @include (#eq? @include "baremodule"))
-(((identifier) @constant.builtin) (match? @constant.builtin "^(nothing|Inf|NaN)$"))
-(((identifier) @boolean) (eq? @boolean "true"))
-(((identifier) @boolean) (eq? @boolean "false"))
+(((identifier) @constant.builtin) (#match? @constant.builtin "^(nothing|Inf|NaN)$"))
+(((identifier) @boolean) (#eq? @boolean "true"))
+(((identifier) @boolean) (#eq? @boolean "false"))
["::" ":" "." "," "..." "!"] @punctuation.delimiter
["[" "]" "(" ")" "{" "}"] @punctuation.bracket