Fix identifier type check

This commit is contained in:
Shatur95 2021-04-18 20:17:01 +03:00 committed by Thomas Vigouroux
parent ec9ee2757d
commit 15f27cf301

View file

@ -30,7 +30,8 @@
(#match? @type "^[A-Z]"))
((identifier) @constant
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
((identifier) @type . ".")
((identifier) @type
(#match? @type "^[A-Z][A-Z_0-9]*$") . (_))
((attribute
(identifier) @field)