mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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]"))
|
||||||
|
|
||||||
|
|
@ -109,8 +107,8 @@
|
||||||
(identifier) @parameter))
|
(identifier) @parameter))
|
||||||
|
|
||||||
; a => null
|
; a => null
|
||||||
(variable_declarator
|
(variable_declarator
|
||||||
value: (arrow_function
|
value: (arrow_function
|
||||||
parameter: (identifier) @parameter))
|
parameter: (identifier) @parameter))
|
||||||
|
|
||||||
; optional parameters
|
; optional parameters
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue