mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
julia: update queries to parser changes
This commit is contained in:
parent
0fc170120a
commit
b2807559e3
4 changed files with 16 additions and 13 deletions
|
|
@ -159,7 +159,7 @@
|
||||||
"revision": "02b01653c8a1c198ae7287d566efa86a135b30d5"
|
"revision": "02b01653c8a1c198ae7287d566efa86a135b30d5"
|
||||||
},
|
},
|
||||||
"julia": {
|
"julia": {
|
||||||
"revision": "12ea597262125fc22fd2e91aa953ac69b19c26ca"
|
"revision": "71ecd1ec5786b2d3f4f9d4c97c397f0475ba4d47"
|
||||||
},
|
},
|
||||||
"kotlin": {
|
"kotlin": {
|
||||||
"revision": "a4f71eb9b8c9b19ded3e0e9470be4b1b77c2b569"
|
"revision": "a4f71eb9b8c9b19ded3e0e9470be4b1b77c2b569"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,7 @@
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
[
|
[
|
||||||
(comment)
|
(line_comment)
|
||||||
(block_comment)
|
(block_comment)
|
||||||
(triple_string)
|
|
||||||
] @ignore
|
] @ignore
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue