mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
apex: highlights: change the constant variable order to recognize it (#6779)
This commit is contained in:
parent
09953e394b
commit
c29989f5d7
1 changed files with 3 additions and 3 deletions
|
|
@ -152,6 +152,9 @@
|
||||||
field: (identifier) @variable.member)
|
field: (identifier) @variable.member)
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
|
(variable_declarator
|
||||||
|
(identifier) @property)
|
||||||
|
|
||||||
(field_declaration
|
(field_declaration
|
||||||
(modifiers
|
(modifiers
|
||||||
(modifier
|
(modifier
|
||||||
|
|
@ -167,9 +170,6 @@
|
||||||
(variable_declarator
|
(variable_declarator
|
||||||
name: (identifier) @constant))
|
name: (identifier) @constant))
|
||||||
|
|
||||||
(variable_declarator
|
|
||||||
(identifier) @property)
|
|
||||||
|
|
||||||
((identifier) @constant
|
((identifier) @constant
|
||||||
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$")) ; SCREAM SNAKE CASE
|
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$")) ; SCREAM SNAKE CASE
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue