From ad77a80813fcdbfd880df3a363c2f5ab41d76146 Mon Sep 17 00:00:00 2001 From: tami5 Date: Wed, 23 Feb 2022 16:53:43 +0300 Subject: feat: highlight string_interpolation identifiers functions call work without issues --- queries/v/highlights.scm | 15 +++++++++++---- 1 file 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 -- cgit v1.2.3