julia: update queries to parser changes

This commit is contained in:
Christian Clason 2022-04-15 10:30:46 +02:00 committed by Christian Clason
parent 0fc170120a
commit b2807559e3
4 changed files with 16 additions and 13 deletions

View file

@ -159,7 +159,7 @@
"revision": "02b01653c8a1c198ae7287d566efa86a135b30d5" "revision": "02b01653c8a1c198ae7287d566efa86a135b30d5"
}, },
"julia": { "julia": {
"revision": "12ea597262125fc22fd2e91aa953ac69b19c26ca" "revision": "71ecd1ec5786b2d3f4f9d4c97c397f0475ba4d47"
}, },
"kotlin": { "kotlin": {
"revision": "a4f71eb9b8c9b19ded3e0e9470be4b1b77c2b569" "revision": "a4f71eb9b8c9b19ded3e0e9470be4b1b77c2b569"

View file

@ -5,13 +5,14 @@
((identifier) @constant ((identifier) @constant
(#match? @constant "^[A-Z][A-Z_]{2}[A-Z_]*$")) (#match? @constant "^[A-Z][A-Z_]{2}[A-Z_]*$"))
[ (escape_sequence) @character.special
(triple_string) (character_literal) @character
(string) (string_literal) @string
] @string (command_literal) @string.special
(command_string) @string.special
(string (prefixed_string_literal
prefix: (identifier) @constant.builtin)
(prefixed_command_literal
prefix: (identifier) @constant.builtin) prefix: (identifier) @constant.builtin)
(macro_identifier) @function.macro (macro_identifier) @function.macro
@ -89,7 +90,10 @@
(struct_definition (struct_definition
name: (identifier) @type) name: (identifier) @type)
(number) @number [
(integer_literal)
(float_literal)
] @number
(range_expression (range_expression
(identifier) @number (identifier) @number
(#eq? @number "end")) (#eq? @number "end"))
@ -98,7 +102,7 @@
(identifier) @number (identifier) @number
(#eq? @number "end"))) (#eq? @number "end")))
(coefficient_expression (coefficient_expression
(number) [(integer_literal) (float_literal)]
(identifier) @constant.builtin) (identifier) @constant.builtin)
;; TODO: operators. ;; TODO: operators.
@ -127,7 +131,7 @@
(function_definition ["function" "end"] @keyword.function) (function_definition ["function" "end"] @keyword.function)
[ [
(comment) (line_comment)
(block_comment) (block_comment)
] @comment ] @comment

View file

@ -35,8 +35,7 @@
] @branch ] @branch
[ [
(comment) (line_comment)
(block_comment) (block_comment)
(triple_string)
] @ignore ] @ignore

View file

@ -3,6 +3,6 @@
; (#offset! @markdown 0 3 0 -3)) ; (#offset! @markdown 0 3 0 -3))
[ [
(comment) (line_comment)
(block_comment) (block_comment)
] @comment ] @comment