feat(tact): update parser and queries (#7196)

This commit is contained in:
Novus Nota 2024-10-09 09:21:33 +02:00 committed by GitHub
parent 009e981c30
commit 9d2acd4997
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 19 deletions

View file

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