feat: add sourcepawn parser and queries (#5865)

This commit is contained in:
Charles 2024-02-09 16:40:01 +01:00 committed by GitHub
parent 3dbea103d8
commit 95036477c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 337 additions and 0 deletions

View file

@ -0,0 +1,19 @@
[
(function_definition)
(alias_declaration)
(enum_struct_method)
(methodmap_method)
(methodmap_method_constructor)
(methodmap_method_destructor)
(methodmap_property_method)
] @local.scope
; Definitions
(variable_declaration
name: (identifier) @local.definition)
(old_variable_declaration
name: (identifier) @local.definition)
; References
(identifier) @local.reference