mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
|
|
@ -1,39 +0,0 @@
|
|||
; Scopes
|
||||
|
||||
[
|
||||
(block)
|
||||
(declaration)
|
||||
(statement)
|
||||
] @scope
|
||||
|
||||
; References
|
||||
|
||||
(identifier) @reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(package_declaration (identifier) @definition.namespace)
|
||||
|
||||
(import_declaration alias: (identifier) @definition.namespace)
|
||||
|
||||
(procedure_declaration (identifier) @definition.function)
|
||||
|
||||
(struct_declaration (identifier) @definition.type "::")
|
||||
|
||||
(enum_declaration (identifier) @definition.enum "::")
|
||||
|
||||
(union_declaration (identifier) @definition.type "::")
|
||||
|
||||
(variable_declaration (identifier) @definition.var ":=")
|
||||
|
||||
(const_declaration (identifier) @definition.constant "::")
|
||||
|
||||
(const_type_declaration (identifier) @definition.type ":")
|
||||
|
||||
(parameter (identifier) @definition.parameter ":"?)
|
||||
|
||||
(default_parameter (identifier) @definition.parameter ":=")
|
||||
|
||||
(field (identifier) @definition.field ":")
|
||||
|
||||
(label_statement (identifier) @definition ":")
|
||||
Loading…
Add table
Add a link
Reference in a new issue