mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
feat: highlight string_interpolation identifiers
functions call work without issues
This commit is contained in:
parent
d039b4d0a4
commit
ad77a80813
1 changed files with 11 additions and 4 deletions
|
|
@ -3,8 +3,17 @@
|
||||||
|
|
||||||
;; Identifiers -------------------
|
;; Identifiers -------------------
|
||||||
(import_path) @namespace
|
(import_path) @namespace
|
||||||
[(module_identifier) ] @variable.builtin
|
(module_identifier) @variable.builtin
|
||||||
[(identifier)] @variable
|
(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
|
[(type_identifier) (array_type) (pointer_type)] @type
|
||||||
|
|
||||||
|
|
@ -372,8 +381,6 @@
|
||||||
|
|
||||||
(int_literal) @number
|
(int_literal) @number
|
||||||
|
|
||||||
(interpreted_string_literal) @string
|
|
||||||
|
|
||||||
(rune_literal) @string
|
(rune_literal) @string
|
||||||
|
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue