mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
Fix identifier type check
This commit is contained in:
parent
ec9ee2757d
commit
15f27cf301
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@
|
||||||
(#match? @type "^[A-Z]"))
|
(#match? @type "^[A-Z]"))
|
||||||
((identifier) @constant
|
((identifier) @constant
|
||||||
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
|
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||||
((identifier) @type . ".")
|
((identifier) @type
|
||||||
|
(#match? @type "^[A-Z][A-Z_0-9]*$") . (_))
|
||||||
|
|
||||||
((attribute
|
((attribute
|
||||||
(identifier) @field)
|
(identifier) @field)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue