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"
},
"julia": {
"revision": "12ea597262125fc22fd2e91aa953ac69b19c26ca"
"revision": "71ecd1ec5786b2d3f4f9d4c97c397f0475ba4d47"
},
"kotlin": {
"revision": "a4f71eb9b8c9b19ded3e0e9470be4b1b77c2b569"

View file

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

View file

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

View file

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