mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
feat(tact): update parser and queries (#7196)
This commit is contained in:
parent
009e981c30
commit
9d2acd4997
4 changed files with 22 additions and 19 deletions
|
|
@ -1,6 +1,7 @@
|
|||
; Scopes @local.scope
|
||||
; -------------------------
|
||||
[
|
||||
(asm_function)
|
||||
(global_function)
|
||||
(init_function)
|
||||
(bounced_function)
|
||||
|
|
@ -13,6 +14,9 @@
|
|||
; Definitions @local.definition
|
||||
; ------------------------------
|
||||
; variables
|
||||
(storage_variable
|
||||
name: (identifier) @local.definition.var)
|
||||
|
||||
(let_statement
|
||||
name: (identifier) @local.definition.var)
|
||||
|
||||
|
|
@ -24,6 +28,10 @@
|
|||
name: (identifier) @local.definition.constant)
|
||||
|
||||
; functions
|
||||
(asm_function
|
||||
name: (identifier) @local.definition.function
|
||||
(#set! definition.var.scope parent))
|
||||
|
||||
(global_function
|
||||
name: (identifier) @local.definition.function
|
||||
(#set! definition.var.scope parent))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue