Add map properties highlighting
This commit is contained in:
parent
42bef1d592
commit
ab6d235540
|
@ -49,4 +49,10 @@
|
|||
field: (identifier) @variable.member))
|
||||
; }}}
|
||||
|
||||
; Expressions {{{
|
||||
(map_expression
|
||||
(property
|
||||
field: (identifier) @property))
|
||||
; }}}
|
||||
|
||||
; vim: sw=2 foldmethod=marker
|
||||
|
|
7
test/highlight/properties.bp
Normal file
7
test/highlight/properties.bp
Normal file
|
@ -0,0 +1,7 @@
|
|||
foo {
|
||||
field: {
|
||||
// <- variable.member
|
||||
key: 42,
|
||||
// <- property
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue