mirror of
https://github.com/elladunbar/tree-sitter-zanscript.git
synced 2025-11-05 15:19:55 -06:00
Add local highlighting maybe
This commit is contained in:
parent
ba71fbc84b
commit
ce993c911c
5 changed files with 44 additions and 19 deletions
5
queries/locals.scm
Normal file
5
queries/locals.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(define find: (match) @local.definition.macro)
|
||||
(((identifier) @local.reference)
|
||||
(#set! reference.scope "global"))
|
||||
(action name: ((identifier) @local.function)
|
||||
(#set! function.scope "global"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue