aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-11-11 08:39:00 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-11-11 08:40:34 +0100
commitd105f2cb7bdd1a920dce959da45035dc121bce2d (patch)
tree7f047c5f6498275f9b9b615c8d7200edf61edd11 /queries
parentfix: formatter idempotency for nested groupings (#7345) (diff)
downloadnvim-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.scm271
-rw-r--r--queries/julia/locals.scm35
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