feat(cpp): simplify namespace query rules now that parser is a bit more consistent

This commit is contained in:
John Drouhard 2023-03-26 13:32:22 -05:00 committed by Amaan Qureshi
parent 25dd24ed0e
commit 300ba8d5a5
3 changed files with 7 additions and 6 deletions

View file

@ -45,12 +45,9 @@
(namespace_identifier) @namespace
((namespace_identifier) @type
(#lua-match? @type "^[A-Z]"))
((namespace_identifier) @constant
(#lua-match? @constant "^[A-Z][A-Z_0-9]*$"))
(case_statement
value: (qualified_identifier (identifier) @constant))
(namespace_definition
name: (identifier) @namespace)
(using_declaration . "using" . "namespace" . [(qualified_identifier) (identifier)] @namespace)