tree-sitter-quirrel 4.43.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. tree_sitter_quirrel-4.43.0/LICENSE +21 -0
  2. tree_sitter_quirrel-4.43.0/PKG-INFO +42 -0
  3. tree_sitter_quirrel-4.43.0/README.md +22 -0
  4. tree_sitter_quirrel-4.43.0/bindings/python/tree_sitter_quirrel/__init__.py +45 -0
  5. tree_sitter_quirrel-4.43.0/bindings/python/tree_sitter_quirrel/__init__.pyi +17 -0
  6. tree_sitter_quirrel-4.43.0/bindings/python/tree_sitter_quirrel/binding.c +35 -0
  7. tree_sitter_quirrel-4.43.0/bindings/python/tree_sitter_quirrel/py.typed +0 -0
  8. tree_sitter_quirrel-4.43.0/bindings/python/tree_sitter_quirrel.egg-info/PKG-INFO +42 -0
  9. tree_sitter_quirrel-4.43.0/bindings/python/tree_sitter_quirrel.egg-info/SOURCES.txt +15 -0
  10. tree_sitter_quirrel-4.43.0/bindings/python/tree_sitter_quirrel.egg-info/dependency_links.txt +1 -0
  11. tree_sitter_quirrel-4.43.0/bindings/python/tree_sitter_quirrel.egg-info/not-zip-safe +1 -0
  12. tree_sitter_quirrel-4.43.0/bindings/python/tree_sitter_quirrel.egg-info/requires.txt +3 -0
  13. tree_sitter_quirrel-4.43.0/bindings/python/tree_sitter_quirrel.egg-info/top_level.txt +2 -0
  14. tree_sitter_quirrel-4.43.0/pyproject.toml +29 -0
  15. tree_sitter_quirrel-4.43.0/queries/highlights.scm +276 -0
  16. tree_sitter_quirrel-4.43.0/queries/tags.scm +76 -0
  17. tree_sitter_quirrel-4.43.0/setup.cfg +4 -0
  18. tree_sitter_quirrel-4.43.0/setup.py +78 -0
  19. tree_sitter_quirrel-4.43.0/src/parser.c +182088 -0
  20. tree_sitter_quirrel-4.43.0/src/scanner.c +463 -0
  21. tree_sitter_quirrel-4.43.0/src/tree_sitter/alloc.h +54 -0
  22. tree_sitter_quirrel-4.43.0/src/tree_sitter/array.h +336 -0
  23. tree_sitter_quirrel-4.43.0/src/tree_sitter/parser.h +286 -0
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Gaijin Entertainment
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: tree-sitter-quirrel
3
+ Version: 4.43.0
4
+ Summary: Dagor Quirrel grammar for tree-sitter
5
+ Author: Gaijin Entertainment
6
+ Author-email: Anton Zinovyev <xog3@yandex.ru>
7
+ License: MIT
8
+ Project-URL: Homepage, https://github.com/GaijinEntertainment/tree-sitter-quirrel
9
+ Keywords: incremental,parsing,tree-sitter,quirrel
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Topic :: Software Development :: Compilers
12
+ Classifier: Topic :: Text Processing :: Linguistic
13
+ Classifier: Typing :: Typed
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Provides-Extra: core
18
+ Requires-Dist: tree-sitter~=0.25; extra == "core"
19
+ Dynamic: license-file
20
+
21
+ # tree-sitter-quirrel
22
+
23
+ [![CI][ci]](https://github.com/GaijinEntertainment/tree-sitter-quirrel/actions/workflows/ci.yml)
24
+ [![crates][crates]](https://crates.io/crates/tree-sitter-quirrel)
25
+ [![npm][npm]](https://www.npmjs.com/package/tree-sitter-quirrel)
26
+ [![pypi][pypi]](https://pypi.org/project/tree-sitter-quirrel)
27
+
28
+ Quirrel grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter). Quirrel is the scripting language of the
29
+ [Dagor Engine](https://github.com/GaijinEntertainment/DagorEngine).
30
+
31
+ The grammar follows the Quirrel compiler of the Dagor Engine and accepts the input of every language mode. The compiler
32
+ rejects some input because of state that a grammar does not keep, and the grammar accepts that input. The grammar does
33
+ not do the checks that the compiler does after it reads the syntax, such as the range check of number literals.
34
+
35
+ ## References
36
+
37
+ - [The Quirrel compiler](https://github.com/GaijinEntertainment/DagorEngine/tree/main/prog/1stPartyLibs/quirrel/quirrel/squirrel/compiler)
38
+
39
+ [ci]: https://img.shields.io/github/actions/workflow/status/GaijinEntertainment/tree-sitter-quirrel/ci.yml?logo=github&label=CI
40
+ [crates]: https://img.shields.io/crates/v/tree-sitter-quirrel?logo=rust
41
+ [npm]: https://img.shields.io/npm/v/tree-sitter-quirrel?logo=npm
42
+ [pypi]: https://img.shields.io/pypi/v/tree-sitter-quirrel?logo=pypi&logoColor=ffd242
@@ -0,0 +1,22 @@
1
+ # tree-sitter-quirrel
2
+
3
+ [![CI][ci]](https://github.com/GaijinEntertainment/tree-sitter-quirrel/actions/workflows/ci.yml)
4
+ [![crates][crates]](https://crates.io/crates/tree-sitter-quirrel)
5
+ [![npm][npm]](https://www.npmjs.com/package/tree-sitter-quirrel)
6
+ [![pypi][pypi]](https://pypi.org/project/tree-sitter-quirrel)
7
+
8
+ Quirrel grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter). Quirrel is the scripting language of the
9
+ [Dagor Engine](https://github.com/GaijinEntertainment/DagorEngine).
10
+
11
+ The grammar follows the Quirrel compiler of the Dagor Engine and accepts the input of every language mode. The compiler
12
+ rejects some input because of state that a grammar does not keep, and the grammar accepts that input. The grammar does
13
+ not do the checks that the compiler does after it reads the syntax, such as the range check of number literals.
14
+
15
+ ## References
16
+
17
+ - [The Quirrel compiler](https://github.com/GaijinEntertainment/DagorEngine/tree/main/prog/1stPartyLibs/quirrel/quirrel/squirrel/compiler)
18
+
19
+ [ci]: https://img.shields.io/github/actions/workflow/status/GaijinEntertainment/tree-sitter-quirrel/ci.yml?logo=github&label=CI
20
+ [crates]: https://img.shields.io/crates/v/tree-sitter-quirrel?logo=rust
21
+ [npm]: https://img.shields.io/npm/v/tree-sitter-quirrel?logo=npm
22
+ [pypi]: https://img.shields.io/pypi/v/tree-sitter-quirrel?logo=pypi&logoColor=ffd242
@@ -0,0 +1,45 @@
1
+ """Dagor Quirrel grammar for tree-sitter"""
2
+
3
+ from ._binding import language
4
+
5
+
6
+ def _get_query(name, file):
7
+ files = globals().get("_files")
8
+ if files is None:
9
+ from importlib.resources import files
10
+ globals()["_files"] = files
11
+ try:
12
+ query = files(f"{__package__}") / file
13
+ globals()[name] = query.read_text()
14
+ except FileNotFoundError:
15
+ globals()[name] = None
16
+ return globals()[name]
17
+
18
+
19
+ def __getattr__(name):
20
+ if name == "HIGHLIGHTS_QUERY":
21
+ return _get_query("HIGHLIGHTS_QUERY", "queries/highlights.scm")
22
+ if name == "INJECTIONS_QUERY":
23
+ return _get_query("INJECTIONS_QUERY", "queries/injections.scm")
24
+ if name == "LOCALS_QUERY":
25
+ return _get_query("LOCALS_QUERY", "queries/locals.scm")
26
+ if name == "TAGS_QUERY":
27
+ return _get_query("TAGS_QUERY", "queries/tags.scm")
28
+
29
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
30
+
31
+
32
+ __all__ = [
33
+ "language",
34
+ "HIGHLIGHTS_QUERY",
35
+ "INJECTIONS_QUERY",
36
+ "LOCALS_QUERY",
37
+ "TAGS_QUERY",
38
+ ]
39
+
40
+
41
+ def __dir__():
42
+ return sorted(__all__ + [
43
+ "__all__", "__builtins__", "__cached__", "__doc__", "__file__",
44
+ "__loader__", "__name__", "__package__", "__path__", "__spec__",
45
+ ])
@@ -0,0 +1,17 @@
1
+ from typing import Final
2
+ from typing_extensions import CapsuleType
3
+
4
+ HIGHLIGHTS_QUERY: Final[str] | None
5
+ """The syntax highlighting query for this grammar."""
6
+
7
+ INJECTIONS_QUERY: Final[str] | None
8
+ """The language injection query for this grammar."""
9
+
10
+ LOCALS_QUERY: Final[str] | None
11
+ """The local variable query for this grammar."""
12
+
13
+ TAGS_QUERY: Final[str] | None
14
+ """The symbol tagging query for this grammar."""
15
+
16
+ def language() -> CapsuleType:
17
+ """The tree-sitter language function for this grammar."""
@@ -0,0 +1,35 @@
1
+ #include <Python.h>
2
+
3
+ typedef struct TSLanguage TSLanguage;
4
+
5
+ TSLanguage *tree_sitter_quirrel(void);
6
+
7
+ static PyObject* _binding_language(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(args)) {
8
+ return PyCapsule_New(tree_sitter_quirrel(), "tree_sitter.Language", NULL);
9
+ }
10
+
11
+ static struct PyModuleDef_Slot slots[] = {
12
+ #ifdef Py_GIL_DISABLED
13
+ {Py_mod_gil, Py_MOD_GIL_NOT_USED},
14
+ #endif
15
+ {0, NULL}
16
+ };
17
+
18
+ static PyMethodDef methods[] = {
19
+ {"language", _binding_language, METH_NOARGS,
20
+ "Get the tree-sitter language for this grammar."},
21
+ {NULL, NULL, 0, NULL}
22
+ };
23
+
24
+ static struct PyModuleDef module = {
25
+ .m_base = PyModuleDef_HEAD_INIT,
26
+ .m_name = "_binding",
27
+ .m_doc = NULL,
28
+ .m_size = 0,
29
+ .m_methods = methods,
30
+ .m_slots = slots,
31
+ };
32
+
33
+ PyMODINIT_FUNC PyInit__binding(void) {
34
+ return PyModuleDef_Init(&module);
35
+ }
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: tree-sitter-quirrel
3
+ Version: 4.43.0
4
+ Summary: Dagor Quirrel grammar for tree-sitter
5
+ Author: Gaijin Entertainment
6
+ Author-email: Anton Zinovyev <xog3@yandex.ru>
7
+ License: MIT
8
+ Project-URL: Homepage, https://github.com/GaijinEntertainment/tree-sitter-quirrel
9
+ Keywords: incremental,parsing,tree-sitter,quirrel
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Topic :: Software Development :: Compilers
12
+ Classifier: Topic :: Text Processing :: Linguistic
13
+ Classifier: Typing :: Typed
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Provides-Extra: core
18
+ Requires-Dist: tree-sitter~=0.25; extra == "core"
19
+ Dynamic: license-file
20
+
21
+ # tree-sitter-quirrel
22
+
23
+ [![CI][ci]](https://github.com/GaijinEntertainment/tree-sitter-quirrel/actions/workflows/ci.yml)
24
+ [![crates][crates]](https://crates.io/crates/tree-sitter-quirrel)
25
+ [![npm][npm]](https://www.npmjs.com/package/tree-sitter-quirrel)
26
+ [![pypi][pypi]](https://pypi.org/project/tree-sitter-quirrel)
27
+
28
+ Quirrel grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter). Quirrel is the scripting language of the
29
+ [Dagor Engine](https://github.com/GaijinEntertainment/DagorEngine).
30
+
31
+ The grammar follows the Quirrel compiler of the Dagor Engine and accepts the input of every language mode. The compiler
32
+ rejects some input because of state that a grammar does not keep, and the grammar accepts that input. The grammar does
33
+ not do the checks that the compiler does after it reads the syntax, such as the range check of number literals.
34
+
35
+ ## References
36
+
37
+ - [The Quirrel compiler](https://github.com/GaijinEntertainment/DagorEngine/tree/main/prog/1stPartyLibs/quirrel/quirrel/squirrel/compiler)
38
+
39
+ [ci]: https://img.shields.io/github/actions/workflow/status/GaijinEntertainment/tree-sitter-quirrel/ci.yml?logo=github&label=CI
40
+ [crates]: https://img.shields.io/crates/v/tree-sitter-quirrel?logo=rust
41
+ [npm]: https://img.shields.io/npm/v/tree-sitter-quirrel?logo=npm
42
+ [pypi]: https://img.shields.io/pypi/v/tree-sitter-quirrel?logo=pypi&logoColor=ffd242
@@ -0,0 +1,15 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ setup.py
5
+ bindings/python/tree_sitter_quirrel/__init__.py
6
+ bindings/python/tree_sitter_quirrel/__init__.pyi
7
+ bindings/python/tree_sitter_quirrel/binding.c
8
+ bindings/python/tree_sitter_quirrel/py.typed
9
+ bindings/python/tree_sitter_quirrel.egg-info/PKG-INFO
10
+ bindings/python/tree_sitter_quirrel.egg-info/SOURCES.txt
11
+ bindings/python/tree_sitter_quirrel.egg-info/dependency_links.txt
12
+ bindings/python/tree_sitter_quirrel.egg-info/not-zip-safe
13
+ bindings/python/tree_sitter_quirrel.egg-info/requires.txt
14
+ bindings/python/tree_sitter_quirrel.egg-info/top_level.txt
15
+ src/parser.c
@@ -0,0 +1,2 @@
1
+ _binding
2
+ tree_sitter_quirrel
@@ -0,0 +1,29 @@
1
+ [build-system]
2
+ build-backend = "setuptools.build_meta"
3
+ requires = [ "setuptools>=62.4.0", "wheel" ]
4
+
5
+ [project]
6
+ authors = [ { name = "Gaijin Entertainment" }, { email = "xog3@yandex.ru", name = "Anton Zinovyev" } ]
7
+ classifiers = [
8
+ "Intended Audience :: Developers",
9
+ "Topic :: Software Development :: Compilers",
10
+ "Topic :: Text Processing :: Linguistic",
11
+ "Typing :: Typed",
12
+ ]
13
+ description = "Dagor Quirrel grammar for tree-sitter"
14
+ keywords = [ "incremental", "parsing", "tree-sitter", "quirrel" ]
15
+ license.text = "MIT"
16
+ name = "tree-sitter-quirrel"
17
+ readme = "README.md"
18
+ requires-python = ">=3.10"
19
+ version = "4.43.0"
20
+
21
+ [project.urls]
22
+ Homepage = "https://github.com/GaijinEntertainment/tree-sitter-quirrel"
23
+
24
+ [project.optional-dependencies]
25
+ core = [ "tree-sitter~=0.25" ]
26
+
27
+ [tool.cibuildwheel]
28
+ build = "cp310-*"
29
+ build-frontend = "build"
@@ -0,0 +1,276 @@
1
+ (identifier) @variable
2
+
3
+ ((identifier) @constant
4
+ (#match? @constant "^[A-Z][A-Z0-9_]*$"))
5
+
6
+ (field_identifier) @variable.member
7
+
8
+ [
9
+ (this)
10
+ (base)
11
+ ] @variable.builtin
12
+
13
+ (parameter
14
+ name: (identifier) @variable.parameter)
15
+
16
+ (catch_clause
17
+ name: (identifier) @variable.parameter)
18
+
19
+ (slot
20
+ key: (identifier) @variable.member)
21
+
22
+ (shorthand_slot
23
+ key: (identifier) @variable.member)
24
+
25
+ (function_declaration
26
+ name: (identifier) @function)
27
+
28
+ (local_declaration
29
+ "function"
30
+ name: (identifier) @function)
31
+
32
+ (const_declaration
33
+ name: (identifier) @constant)
34
+
35
+ (const_declaration
36
+ "function"
37
+ name: (identifier) @function)
38
+
39
+ (function_expression
40
+ name: (identifier) @function)
41
+
42
+ (lambda_expression
43
+ name: (identifier) @function)
44
+
45
+ (method
46
+ name: (identifier) @function.method)
47
+
48
+ (call_expression
49
+ callee: (identifier) @function.call)
50
+
51
+ (call_expression
52
+ callee: (root_table_access
53
+ name: (identifier) @function.call))
54
+
55
+ (call_expression
56
+ callee: (field_access_expression
57
+ field: (field_identifier) @function.method.call))
58
+
59
+ ((identifier) @constructor
60
+ (#eq? @constructor "constructor"))
61
+
62
+ ((field_identifier) @constructor
63
+ (#eq? @constructor "constructor"))
64
+
65
+ (class_declaration
66
+ name: (identifier) @type)
67
+
68
+ (class_declaration
69
+ base: (identifier) @type)
70
+
71
+ (class_expression
72
+ base: (identifier) @type)
73
+
74
+ (local_declaration
75
+ "class"
76
+ name: (identifier) @type)
77
+
78
+ (enum_declaration
79
+ name: (identifier) @type)
80
+
81
+ (catch_clause
82
+ class: (identifier) @type)
83
+
84
+ (enum_member
85
+ name: (identifier) @constant)
86
+
87
+ (type) @type.builtin
88
+
89
+ (import_statement
90
+ alias: (identifier) @module)
91
+
92
+ (wildcard_import) @character.special
93
+
94
+ (integer) @number
95
+
96
+ (float) @number.float
97
+
98
+ [
99
+ (true)
100
+ (false)
101
+ ] @boolean
102
+
103
+ [
104
+ (null)
105
+ (line_macro)
106
+ (file_macro)
107
+ ] @constant.builtin
108
+
109
+ [
110
+ (string)
111
+ (verbatim_string)
112
+ (interpolated_string)
113
+ ] @string
114
+
115
+ (escape_sequence) @string.escape
116
+
117
+ (character) @character
118
+
119
+ (docstring) @string.documentation
120
+
121
+ (comment) @comment
122
+
123
+ [
124
+ (directive)
125
+ (position_directive)
126
+ ] @keyword.directive
127
+
128
+ [
129
+ "local"
130
+ "let"
131
+ ] @keyword
132
+
133
+ [
134
+ "const"
135
+ "global"
136
+ "static"
137
+ ] @keyword.modifier
138
+
139
+ [
140
+ "function"
141
+ "@"
142
+ ] @keyword.function
143
+
144
+ [
145
+ "class"
146
+ "enum"
147
+ ] @keyword.type
148
+
149
+ [
150
+ "return"
151
+ "yield"
152
+ ] @keyword.return
153
+
154
+ [
155
+ "if"
156
+ "else"
157
+ "switch"
158
+ "case"
159
+ "default"
160
+ ] @keyword.conditional
161
+
162
+ [
163
+ "while"
164
+ "do"
165
+ "for"
166
+ "foreach"
167
+ (break_statement)
168
+ (continue_statement)
169
+ ] @keyword.repeat
170
+
171
+ [
172
+ "try"
173
+ "catch"
174
+ "throw"
175
+ ] @keyword.exception
176
+
177
+ [
178
+ "import"
179
+ "from"
180
+ "as"
181
+ ] @keyword.import
182
+
183
+ [
184
+ "async"
185
+ "await"
186
+ "resume"
187
+ ] @keyword.coroutine
188
+
189
+ [
190
+ "typeof"
191
+ "instanceof"
192
+ "in"
193
+ "not"
194
+ "delete"
195
+ "clone"
196
+ ] @keyword.operator
197
+
198
+ [
199
+ "pure"
200
+ "nodiscard"
201
+ ] @attribute
202
+
203
+ [
204
+ "="
205
+ "<-"
206
+ "+="
207
+ "-="
208
+ "*="
209
+ "/="
210
+ "%="
211
+ "+"
212
+ "-"
213
+ "*"
214
+ "/"
215
+ "%"
216
+ "++"
217
+ "--"
218
+ "=="
219
+ "!="
220
+ "<=>"
221
+ "<"
222
+ ">"
223
+ "<="
224
+ ">="
225
+ "<<"
226
+ ">>"
227
+ ">>>"
228
+ "&"
229
+ "|"
230
+ "^"
231
+ "~"
232
+ "!"
233
+ "&&"
234
+ "||"
235
+ "??"
236
+ "..."
237
+ ] @operator
238
+
239
+ (vararg_parameter
240
+ "..." @variable.parameter)
241
+
242
+ [
243
+ "("
244
+ ")"
245
+ "["
246
+ "]"
247
+ "{"
248
+ "}"
249
+ "?("
250
+ "?["
251
+ ] @punctuation.bracket
252
+
253
+ [
254
+ ","
255
+ ";"
256
+ ":"
257
+ "."
258
+ "?."
259
+ ".$"
260
+ "?.$"
261
+ "::"
262
+ ] @punctuation.delimiter
263
+
264
+ (ternary_expression
265
+ [
266
+ "?"
267
+ ":"
268
+ ] @keyword.conditional.ternary)
269
+
270
+ (hole
271
+ [
272
+ "{"
273
+ "}"
274
+ ] @punctuation.special)
275
+
276
+ "$${" @punctuation.special
@@ -0,0 +1,76 @@
1
+ (
2
+ (comment)* @doc
3
+ .
4
+ (function_declaration
5
+ name: (identifier) @name) @definition.function
6
+ (#strip! @doc "^//\\s?|^/\\*\\s*|\\s*\\*/$")
7
+ (#select-adjacent! @doc @definition.function)
8
+ )
9
+
10
+ (
11
+ (comment)* @doc
12
+ .
13
+ [
14
+ (local_declaration
15
+ "function"
16
+ name: (identifier) @name)
17
+ (const_declaration
18
+ "function"
19
+ name: (identifier) @name)
20
+ ] @definition.function
21
+ (#strip! @doc "^//\\s?|^/\\*\\s*|\\s*\\*/$")
22
+ (#select-adjacent! @doc @definition.function)
23
+ )
24
+
25
+ (
26
+ (comment)* @doc
27
+ .
28
+ [
29
+ (class_declaration
30
+ name: (identifier) @name)
31
+ (local_declaration
32
+ "class"
33
+ name: (identifier) @name)
34
+ ] @definition.class
35
+ (#strip! @doc "^//\\s?|^/\\*\\s*|\\s*\\*/$")
36
+ (#select-adjacent! @doc @definition.class)
37
+ )
38
+
39
+ (variable_declaration
40
+ name: (identifier) @name
41
+ value: [
42
+ (function_expression)
43
+ (lambda_expression)
44
+ ]) @definition.function
45
+
46
+ (slot
47
+ key: (identifier) @name
48
+ value: [
49
+ (function_expression)
50
+ (lambda_expression)
51
+ ]) @definition.function
52
+
53
+ (method
54
+ name: (identifier) @name) @definition.method
55
+
56
+ (enum_declaration
57
+ name: (identifier) @name) @definition.class
58
+
59
+ (const_declaration
60
+ name: (identifier) @name
61
+ value: (_)) @definition.constant
62
+
63
+ (class_declaration
64
+ base: (identifier) @name) @reference.class
65
+
66
+ (class_expression
67
+ base: (identifier) @name) @reference.class
68
+
69
+ (call_expression
70
+ callee: [
71
+ (identifier) @name
72
+ (field_access_expression
73
+ field: (field_identifier) @name)
74
+ (root_table_access
75
+ name: (identifier) @name)
76
+ ]) @reference.call
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+