diff options
| author | Fredrik Ekre <ekrefredrik@gmail.com> | 2024-11-28 21:24:32 +0100 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-29 08:12:56 +0100 |
| commit | 60b4c15e7c055295241868e2cc30d71581083ed7 (patch) | |
| tree | db8fdf3465ed6161fbe30f9fe4dace964d468e61 /queries | |
| parent | bot(lockfile): update nu, sql, typespec (diff) | |
| download | nvim-treesitter-60b4c15e7c055295241868e2cc30d71581083ed7.tar nvim-treesitter-60b4c15e7c055295241868e2cc30d71581083ed7.tar.gz nvim-treesitter-60b4c15e7c055295241868e2cc30d71581083ed7.tar.bz2 nvim-treesitter-60b4c15e7c055295241868e2cc30d71581083ed7.tar.lz nvim-treesitter-60b4c15e7c055295241868e2cc30d71581083ed7.tar.xz nvim-treesitter-60b4c15e7c055295241868e2cc30d71581083ed7.tar.zst nvim-treesitter-60b4c15e7c055295241868e2cc30d71581083ed7.zip | |
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.
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/julia/highlights.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/queries/julia/highlights.scm b/queries/julia/highlights.scm index 789f8190c..1d1191862 100644 --- a/queries/julia/highlights.scm +++ b/queries/julia/highlights.scm @@ -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")) |
