mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat: sway programming language
This commit is contained in:
parent
d3d4c1411c
commit
8fadb18430
9 changed files with 848 additions and 0 deletions
16
queries/sway/locals.scm
Normal file
16
queries/sway/locals.scm
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
; Scopes
|
||||
[
|
||||
(function_item)
|
||||
(closure_expression)
|
||||
(block)
|
||||
] @local.scope
|
||||
|
||||
; Definitions
|
||||
(parameter
|
||||
(identifier) @local.definition)
|
||||
|
||||
(closure_parameters
|
||||
(identifier) @local.definition)
|
||||
|
||||
; References
|
||||
(identifier) @local.reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue