Add map properties highlighting

This commit is contained in:
Bruno BELANYI 2024-04-08 21:35:55 +01:00
parent 42bef1d592
commit ab6d235540
2 changed files with 13 additions and 0 deletions

View file

@ -49,4 +49,10 @@
field: (identifier) @variable.member))
; }}}
; Expressions {{{
(map_expression
(property
field: (identifier) @property))
; }}}
; vim: sw=2 foldmethod=marker

View file

@ -0,0 +1,7 @@
foo {
field: {
// <- variable.member
key: 42,
// <- property
},
}