mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12:30:01 -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
|
||||
(shorthand_property_identifier) @variable
|
||||
(shorthand_property_identifier) @property
|
||||
|
||||
; Special identifiers
|
||||
;--------------------
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
((identifier) @constructor
|
||||
(#match? @constructor "^[A-Z]"))
|
||||
|
||||
|
|
@ -109,8 +107,8 @@
|
|||
(identifier) @parameter))
|
||||
|
||||
; a => null
|
||||
(variable_declarator
|
||||
value: (arrow_function
|
||||
(variable_declarator
|
||||
value: (arrow_function
|
||||
parameter: (identifier) @parameter))
|
||||
|
||||
; optional parameters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue