feat(streamdevice_proto): add parser and queries

This commit is contained in:
Minijackson 2025-09-30 10:38:32 +02:00
parent 6e42d823ce
commit 5d9526e9b0
No known key found for this signature in database
GPG key ID: FEA888C9F5D64F62
6 changed files with 149 additions and 0 deletions

View file

@ -0,0 +1,22 @@
(source_file) @local.scope
; The content of a function is a scope, not the whole function block.
; Else, the function is defined inside itself
(function
.
(function_name)
.
(_) @local.scope)
(function
.
(function_name) @local.definition.function)
(assignment
(variable_name) @local.definition.var)
(variable_name) @local.reference
((handler
(function_name) @local.reference)
(#set! reference.kind "call"))