feat: sway programming language

This commit is contained in:
Riley Bruins 2024-11-01 13:34:02 -07:00 committed by Christian Clason
parent d3d4c1411c
commit 8fadb18430
9 changed files with 848 additions and 0 deletions

16
queries/sway/locals.scm Normal file
View 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