mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(ecma): limit constructor highlight
This commit is contained in:
parent
a8ced4ce8b
commit
0e6d4b4172
1 changed files with 8 additions and 2 deletions
|
|
@ -20,8 +20,8 @@
|
|||
; Special identifiers
|
||||
;--------------------
|
||||
|
||||
((identifier) @constructor
|
||||
(#lua-match? @constructor "^[A-Z]"))
|
||||
((identifier) @type
|
||||
(#lua-match? @type "^[A-Z]"))
|
||||
|
||||
((identifier) @constant
|
||||
(#lua-match? @constant "^[A-Z_][A-Z%d_]+$"))
|
||||
|
|
@ -89,6 +89,12 @@
|
|||
function: (member_expression
|
||||
property: [(property_identifier) (private_property_identifier)] @method.call))
|
||||
|
||||
; Constructor
|
||||
;------------
|
||||
|
||||
(new_expression
|
||||
constructor: (identifier) @constructor)
|
||||
|
||||
; Variables
|
||||
;----------
|
||||
(namespace_import
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue