mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
Highlight named fields in struct literals
This commit is contained in:
parent
d3405a6946
commit
dcc5895e7c
1 changed files with 3 additions and 0 deletions
|
|
@ -196,6 +196,9 @@
|
||||||
(false) @boolean
|
(false) @boolean
|
||||||
(nil) @constant.builtin
|
(nil) @constant.builtin
|
||||||
|
|
||||||
|
(keyed_element
|
||||||
|
. (literal_element (identifier) @field))
|
||||||
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
(ERROR) @error
|
(ERROR) @error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue