mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-06 04:17:43 +03:00
Add initial symbols queries
This commit is contained in:
parent
cc3b77b584
commit
02c5df9031
6 changed files with 83 additions and 0 deletions
12
runtime/queries/cpp/symbols.scm
Normal file
12
runtime/queries/cpp/symbols.scm
Normal file
|
@ -0,0 +1,12 @@
|
|||
; inherits: c
|
||||
|
||||
(function_declarator
|
||||
declarator: (qualified_identifier name: (identifier) @definition.function))
|
||||
|
||||
(struct_specifier
|
||||
name: (type_identifier) @definition.struct
|
||||
body: (field_declaration_list))
|
||||
|
||||
(class_specifier
|
||||
name: (type_identifier) @definition.class
|
||||
body: (field_declaration_list))
|
Loading…
Add table
Add a link
Reference in a new issue