feat: highlight string_interpolation identifiers

functions call work without issues
This commit is contained in:
tami5 2022-02-23 16:53:43 +03:00 committed by Stephan Seitz
parent d039b4d0a4
commit ad77a80813

View file

@ -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