diff options
| -rw-r--r-- | queries/julia/highlights.scm | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/queries/julia/highlights.scm b/queries/julia/highlights.scm index 8d30ff558..116767870 100644 --- a/queries/julia/highlights.scm +++ b/queries/julia/highlights.scm @@ -79,9 +79,11 @@ ;; Definitions (abstract_definition - name: (identifier) @type) + name: (identifier) @type.definition + (subtype_clause (identifier) @type)) (primitive_definition - name: (identifier) @type) + name: (identifier) @type.definition + (subtype_clause (identifier) @type)) (struct_definition name: (identifier) @type) @@ -107,19 +109,16 @@ ;;; Keywords [ - "abstract" - "const" "macro" - "primitive" "struct" "type" - "mutable" "where" ] @keyword "end" @keyword -((identifier) @keyword (#any-of? @keyword "global" "local")) ; Grammar error +((identifier) @keyword + (#any-of? @keyword "global" "local")) ; Grammar error (compound_statement ["begin" "end"] @keyword) @@ -174,6 +173,13 @@ (return_statement "return" @keyword.return) +[ + "abstract" + "const" + "mutable" + "primitive" +] @type.qualifier + ;;; Operators & Punctuation |
