diff options
| -rw-r--r-- | queries/v/highlights.scm | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/queries/v/highlights.scm b/queries/v/highlights.scm index 8f771020..d31fe8ff 100644 --- a/queries/v/highlights.scm +++ b/queries/v/highlights.scm @@ -3,8 +3,17 @@ ;; Identifiers ------------------- (import_path) @namespace -[(module_identifier) ] @variable.builtin -[(identifier)] @variable +(module_identifier) @variable.builtin +(identifier) @variable +(interpreted_string_literal) @string +(string_interpolation) @none + +; TODO: Have differnt highlight to make then standout + highlight }{$ as special +; ((string_interpolation +; (identifier) @constant +; "$" @punctuation.special +; "${" @punctuation.special +; "}" @punctuation.special)) [(type_identifier) (array_type) (pointer_type)] @type @@ -372,8 +381,6 @@ (int_literal) @number -(interpreted_string_literal) @string - (rune_literal) @string (escape_sequence) @string.escape |
