mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat(javascript): move shorthand prop to property
This commit is contained in:
parent
76d4a2a0c4
commit
db033f7239
1 changed files with 3 additions and 5 deletions
|
|
@ -11,13 +11,11 @@
|
||||||
;-----------
|
;-----------
|
||||||
|
|
||||||
(property_identifier) @property
|
(property_identifier) @property
|
||||||
(shorthand_property_identifier) @variable
|
(shorthand_property_identifier) @property
|
||||||
|
|
||||||
; Special identifiers
|
; Special identifiers
|
||||||
;--------------------
|
;--------------------
|
||||||
|
|
||||||
(identifier) @variable
|
|
||||||
|
|
||||||
((identifier) @constructor
|
((identifier) @constructor
|
||||||
(#match? @constructor "^[A-Z]"))
|
(#match? @constructor "^[A-Z]"))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue