mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat(julia): highlight interpolation operator
This patch adds `$` to the `@punctuation.special` capture group within `(string_interpolation)` (e.g. `"hello $name"`) and `(interpolation_expression)` (e.g. `:(hello $name)`) nodes.
This commit is contained in:
parent
a0a1d7bb50
commit
60b4c15e7c
1 changed files with 9 additions and 0 deletions
|
|
@ -298,6 +298,15 @@
|
||||||
"}"
|
"}"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
; Interpolation
|
||||||
|
(string_interpolation
|
||||||
|
.
|
||||||
|
"$" @punctuation.special)
|
||||||
|
|
||||||
|
(interpolation_expression
|
||||||
|
.
|
||||||
|
"$" @punctuation.special)
|
||||||
|
|
||||||
; Keyword operators
|
; Keyword operators
|
||||||
((operator) @keyword.operator
|
((operator) @keyword.operator
|
||||||
(#any-of? @keyword.operator "in" "isa"))
|
(#any-of? @keyword.operator "in" "isa"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue