summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Degnbol Madsen <christian.degnbol@gmail.com>2023-12-22 21:24:04 +1100
committerGitHub <noreply@github.com>2023-12-22 12:24:04 +0200
commit454c3a9ba86f841dc3b5bb17d150a873a16b77b4 (patch)
tree934999738f0313b94b5348efd02e225382d4e711
parentUpdate parsers: apex, scala, soql, sosl, tlaplus, wing (diff)
downloadnvim-treesitter-454c3a9ba86f841dc3b5bb17d150a873a16b77b4.tar
nvim-treesitter-454c3a9ba86f841dc3b5bb17d150a873a16b77b4.tar.gz
nvim-treesitter-454c3a9ba86f841dc3b5bb17d150a873a16b77b4.tar.bz2
nvim-treesitter-454c3a9ba86f841dc3b5bb17d150a873a16b77b4.tar.lz
nvim-treesitter-454c3a9ba86f841dc3b5bb17d150a873a16b77b4.tar.xz
nvim-treesitter-454c3a9ba86f841dc3b5bb17d150a873a16b77b4.tar.zst
nvim-treesitter-454c3a9ba86f841dc3b5bb17d150a873a16b77b4.zip
fix(julia): pipe function highlight (#5815)
In Julia when piping into a function the function should be highlighted as a function call, and not a variable.
-rw-r--r--queries/julia/highlights.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/julia/highlights.scm b/queries/julia/highlights.scm
index fbf97acd7..8b7ee45e9 100644
--- a/queries/julia/highlights.scm
+++ b/queries/julia/highlights.scm
@@ -47,6 +47,12 @@
(broadcast_call_expression
(field_expression (identifier) @function.call .))
+(binary_expression
+ (_)
+ (operator) @_pipe
+ (identifier) @function.call
+ (#eq? @_pipe "|>"))
+
;; Builtins
((identifier) @function.builtin