C/C++ highlights: Small improvements for type definitions

This commit is contained in:
Stephan Seitz 2020-07-11 01:47:05 +02:00
parent d891c6eb06
commit c211720c53
2 changed files with 6 additions and 0 deletions

View file

@ -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
[

View file

@ -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