Julia queries: update grammar, fix breaking changes

pull/3536/head
Christoph Horn 2 years ago committed by Michael Davis
parent 2b16fd43f9
commit 77f11bf272

@ -571,7 +571,7 @@ indent = { tab-width = 4, unit = " " }
[[grammar]] [[grammar]]
name = "julia" name = "julia"
source = { git = "https://github.com/tree-sitter/tree-sitter-julia", rev = "12ea597262125fc22fd2e91aa953ac69b19c26ca" } source = { git = "https://github.com/tree-sitter/tree-sitter-julia", rev = "fc60b7cce87da7a1b7f8cb0f9371c3dc8b684500" }
[[language]] [[language]]
name = "java" name = "java"

@ -1,10 +1,7 @@
[ (string_literal) @string
(triple_string)
(string)
] @string
(string (prefixed_string_literal
prefix: (identifier) @constant.builtin) prefix: (identifier) @constant.builtin)
(macro_identifier) @function.macro (macro_identifier) @function.macro
@ -80,7 +77,9 @@
(struct_definition (struct_definition
name: (identifier) @type) name: (identifier) @type)
(number) @constant.numeric.integer (integer_literal) @constant.numeric.integer
(float_literal) @constant.numeric.float
(range_expression (range_expression
(identifier) @constant.numeric.integer (identifier) @constant.numeric.integer
(eq? @constant.numeric.integer "end")) (eq? @constant.numeric.integer "end"))
@ -89,7 +88,10 @@
(identifier) @constant.numeric.integer (identifier) @constant.numeric.integer
(eq? @constant.numeric.integer "end"))) (eq? @constant.numeric.integer "end")))
(coefficient_expression (coefficient_expression
(number) [
(integer_literal)
(float_literal)
]
(identifier) @constant.builtin) (identifier) @constant.builtin)
;; TODO: operators. ;; TODO: operators.
@ -117,7 +119,10 @@
(function_definition ["function" "end"] @keyword.function) (function_definition ["function" "end"] @keyword.function)
(comment) @comment [
(line_comment)
(block_comment)
] @comment
[ [
"const" "const"
@ -171,7 +176,7 @@
(((identifier) @constant.builtin.boolean) (#eq? @constant.builtin.boolean "false")) (((identifier) @constant.builtin.boolean) (#eq? @constant.builtin.boolean "false"))
["::" ":" "." "," "..." "!"] @punctuation.delimiter ["::" ":" "." "," "..."] @punctuation.delimiter
["[" "]" "(" ")" "{" "}"] @punctuation.bracket ["[" "]" "(" ")" "{" "}"] @punctuation.bracket
["="] @operator ["="] @operator

@ -1,5 +1,8 @@
((triple_string) @injection.content ; ((string_literal) @injection.content
(#set! injection.language "markdown")) ; (#set! injection.language "markdown"))
((comment) @injection.content ; ((line_comment) @injection.content
(#set! injection.language "comment")) ; (#set! injection.language "comment"))
; ((block_comment) @injection.content
; (#set! injection.language "comment"))

Loading…
Cancel
Save