diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2024-11-11 08:39:00 +0100 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-11 08:40:34 +0100 |
| commit | d105f2cb7bdd1a920dce959da45035dc121bce2d (patch) | |
| tree | 7f047c5f6498275f9b9b615c8d7200edf61edd11 /queries | |
| parent | fix: formatter idempotency for nested groupings (#7345) (diff) | |
| download | nvim-treesitter-d105f2cb7bdd1a920dce959da45035dc121bce2d.tar nvim-treesitter-d105f2cb7bdd1a920dce959da45035dc121bce2d.tar.gz nvim-treesitter-d105f2cb7bdd1a920dce959da45035dc121bce2d.tar.bz2 nvim-treesitter-d105f2cb7bdd1a920dce959da45035dc121bce2d.tar.lz nvim-treesitter-d105f2cb7bdd1a920dce959da45035dc121bce2d.tar.xz nvim-treesitter-d105f2cb7bdd1a920dce959da45035dc121bce2d.tar.zst nvim-treesitter-d105f2cb7bdd1a920dce959da45035dc121bce2d.zip | |
feat(julia): update parser and queries
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/julia/highlights.scm | 271 | ||||
| -rw-r--r-- | queries/julia/locals.scm | 35 |
2 files changed, 143 insertions, 163 deletions
diff --git a/queries/julia/highlights.scm b/queries/julia/highlights.scm index d67c69c3e..344431fd4 100644 --- a/queries/julia/highlights.scm +++ b/queries/julia/highlights.scm @@ -1,9 +1,10 @@ ; Identifiers (identifier) @variable -; ;; If you want type highlighting based on Julia naming conventions (this might collide with mathematical notation) -; ((identifier) @type -; (match? @type "^[A-Z][^_]")) ; exception: Highlight `A_foo` sort of identifiers as variables +(field_expression + (identifier) @variable.member .) + +; Symbols (quote_expression ":" @string.special.symbol [ @@ -11,10 +12,7 @@ (operator) ] @string.special.symbol) -(field_expression - (identifier) @variable.member .) - -; calls +; Function calls (call_expression (identifier) @function.call) @@ -35,113 +33,66 @@ (identifier) @function.call (#any-of? @_pipe "|>" ".|>")) +; Macros (macro_identifier) @function.macro |
