Skip to content

Commit

Permalink
feat(julia): highlight interpolation operator
Browse files Browse the repository at this point in the history
This patch adds `$` to the `@punctuation.special` capture group within
`(string_interpolation)` (e.g. `"hello $name"`) and
`(interpolation_expression)` (e.g. `:(hello $name)`) nodes.
  • Loading branch information
fredrikekre authored and clason committed Nov 29, 2024
1 parent a0a1d7b commit 60b4c15
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions queries/julia/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,15 @@
"}"
] @punctuation.bracket

; Interpolation
(string_interpolation
.
"$" @punctuation.special)

(interpolation_expression
.
"$" @punctuation.special)

; Keyword operators
((operator) @keyword.operator
(#any-of? @keyword.operator "in" "isa"))
Expand Down

0 comments on commit 60b4c15

Please sign in to comment.