mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
C/C++ highlights: Small improvements for type definitions
This commit is contained in:
parent
d891c6eb06
commit
c211720c53
2 changed files with 6 additions and 0 deletions
|
|
@ -26,9 +26,12 @@
|
|||
declarator: (field_identifier) @definition.field)
|
||||
(type_definition
|
||||
declarator: (type_identifier) @definition.type)
|
||||
(struct_specifier
|
||||
name: (type_identifier) @definition.type)
|
||||
|
||||
;; References
|
||||
(identifier) @reference
|
||||
(type_identifier) @reference
|
||||
|
||||
;; Scope
|
||||
[
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@
|
|||
name: (scoped_type_identifier
|
||||
name: (type_identifier) @definition.type))
|
||||
|
||||
(alias_declaration
|
||||
name: (type_identifier) @definition.type)
|
||||
|
||||
;; Function defintions
|
||||
(template_function
|
||||
name: (identifier) @definition.function) @scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue