From 60b4c15e7c055295241868e2cc30d71581083ed7 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Thu, 28 Nov 2024 21:24:32 +0100 Subject: [PATCH] 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. --- queries/julia/highlights.scm | 9 +++++++++ 1 file changed, 9 insertions(+) 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"))