diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-11-20 14:41:51 +0200 |
|---|---|---|
| committer | ObserverOfTime <chronobserver@disroot.org> | 2022-11-26 13:17:51 +0200 |
| commit | 58940a558986a640623bf42ad48273576d14b613 (patch) | |
| tree | eb2871444ed69c46d306458f3de33ced23af6f7b | |
| parent | highlights(haskell): fix captures (diff) | |
| download | nvim-treesitter-58940a558986a640623bf42ad48273576d14b613.tar nvim-treesitter-58940a558986a640623bf42ad48273576d14b613.tar.gz nvim-treesitter-58940a558986a640623bf42ad48273576d14b613.tar.bz2 nvim-treesitter-58940a558986a640623bf42ad48273576d14b613.tar.lz nvim-treesitter-58940a558986a640623bf42ad48273576d14b613.tar.xz nvim-treesitter-58940a558986a640623bf42ad48273576d14b613.tar.zst nvim-treesitter-58940a558986a640623bf42ad48273576d14b613.zip | |
highlights(julia): use more specific groups
| -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 |
