mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
highlights(cpp): auto as @type.builtin
This commit is contained in:
parent
4b99343d6e
commit
4e21b50fbd
1 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
(parameter_declaration
|
(parameter_declaration
|
||||||
declarator: (reference_declarator) @parameter)
|
declarator: (reference_declarator) @parameter)
|
||||||
|
|
||||||
; function(Foo ...foo)
|
; function(Foo ...foo)
|
||||||
(variadic_parameter_declaration
|
(variadic_parameter_declaration
|
||||||
declarator: (variadic_declarator
|
declarator: (variadic_declarator
|
||||||
|
|
@ -39,6 +40,8 @@
|
||||||
(alias_declaration
|
(alias_declaration
|
||||||
name: (type_identifier) @type.definition)
|
name: (type_identifier) @type.definition)
|
||||||
|
|
||||||
|
(auto) @type.builtin
|
||||||
|
|
||||||
(namespace_identifier) @namespace
|
(namespace_identifier) @namespace
|
||||||
((namespace_identifier) @type
|
((namespace_identifier) @type
|
||||||
(#lua-match? @type "^[A-Z]"))
|
(#lua-match? @type "^[A-Z]"))
|
||||||
|
|
@ -143,7 +146,6 @@
|
||||||
"co_await"
|
"co_await"
|
||||||
"concept"
|
"concept"
|
||||||
"requires"
|
"requires"
|
||||||
(auto)
|
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue