perchai-cli 2.4.117 → 2.4.119

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.
@@ -0,0 +1,264 @@
1
+ # Third-party notices: tree-sitter runtime and grammars
2
+
3
+ The files in this folder are vendored, unmodified, from these npm packages (the `.wasm` files) and their `queries/tags.scm` files (each query file in `queries/` names its source and keeps the license). All are MIT licensed.
4
+
5
+ ## web-tree-sitter 0.27.1
6
+
7
+ ```
8
+ The MIT License (MIT)
9
+
10
+ Copyright (c) 2018 Max Brunsfeld
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+ ```
30
+
31
+ ## tree-sitter-typescript 0.23.2
32
+
33
+ ```
34
+ The MIT License (MIT)
35
+
36
+ Copyright (c) 2017 Max Brunsfeld
37
+
38
+ Permission is hereby granted, free of charge, to any person obtaining a copy
39
+ of this software and associated documentation files (the "Software"), to deal
40
+ in the Software without restriction, including without limitation the rights
41
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42
+ copies of the Software, and to permit persons to whom the Software is
43
+ furnished to do so, subject to the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be included in all
46
+ copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
54
+ SOFTWARE.
55
+ ```
56
+
57
+ ## tree-sitter-javascript 0.25.0
58
+
59
+ ```
60
+ The MIT License (MIT)
61
+
62
+ Copyright (c) 2014 Max Brunsfeld
63
+
64
+ Permission is hereby granted, free of charge, to any person obtaining a copy
65
+ of this software and associated documentation files (the "Software"), to deal
66
+ in the Software without restriction, including without limitation the rights
67
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
68
+ copies of the Software, and to permit persons to whom the Software is
69
+ furnished to do so, subject to the following conditions:
70
+
71
+ The above copyright notice and this permission notice shall be included in all
72
+ copies or substantial portions of the Software.
73
+
74
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
75
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
76
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
77
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
78
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
79
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
80
+ SOFTWARE.
81
+ ```
82
+
83
+ ## tree-sitter-python 0.25.0
84
+
85
+ ```
86
+ The MIT License (MIT)
87
+
88
+ Copyright (c) 2016 Max Brunsfeld
89
+
90
+ Permission is hereby granted, free of charge, to any person obtaining a copy
91
+ of this software and associated documentation files (the "Software"), to deal
92
+ in the Software without restriction, including without limitation the rights
93
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
94
+ copies of the Software, and to permit persons to whom the Software is
95
+ furnished to do so, subject to the following conditions:
96
+
97
+ The above copyright notice and this permission notice shall be included in all
98
+ copies or substantial portions of the Software.
99
+
100
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
101
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
102
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
103
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
104
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
105
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
106
+ SOFTWARE.
107
+ ```
108
+
109
+ ## tree-sitter-go 0.25.0
110
+
111
+ ```
112
+ The MIT License (MIT)
113
+
114
+ Copyright (c) 2014 Max Brunsfeld
115
+
116
+ Permission is hereby granted, free of charge, to any person obtaining a copy
117
+ of this software and associated documentation files (the "Software"), to deal
118
+ in the Software without restriction, including without limitation the rights
119
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
120
+ copies of the Software, and to permit persons to whom the Software is
121
+ furnished to do so, subject to the following conditions:
122
+
123
+ The above copyright notice and this permission notice shall be included in all
124
+ copies or substantial portions of the Software.
125
+
126
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
127
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
128
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
129
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
130
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
131
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
132
+ SOFTWARE.
133
+ ```
134
+
135
+ ## tree-sitter-java 0.23.5
136
+
137
+ ```
138
+ MIT License
139
+
140
+ Copyright (c) 2017 Ayman Nadeem
141
+
142
+ Permission is hereby granted, free of charge, to any person obtaining a copy
143
+ of this software and associated documentation files (the "Software"), to deal
144
+ in the Software without restriction, including without limitation the rights
145
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
146
+ copies of the Software, and to permit persons to whom the Software is
147
+ furnished to do so, subject to the following conditions:
148
+
149
+ The above copyright notice and this permission notice shall be included in all
150
+ copies or substantial portions of the Software.
151
+
152
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
153
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
154
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
155
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
156
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
157
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
158
+ SOFTWARE.
159
+ ```
160
+
161
+ ## tree-sitter-c-sharp 0.23.5
162
+
163
+ ```
164
+ The MIT License (MIT)
165
+
166
+ Copyright (c) 2014-2023 Max Brunsfeld, Damien Guard, Amaan Qureshi, and contributors.
167
+
168
+ Permission is hereby granted, free of charge, to any person obtaining a copy
169
+ of this software and associated documentation files (the "Software"), to deal
170
+ in the Software without restriction, including without limitation the rights
171
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
172
+ copies of the Software, and to permit persons to whom the Software is
173
+ furnished to do so, subject to the following conditions:
174
+
175
+ The above copyright notice and this permission notice shall be included in all
176
+ copies or substantial portions of the Software.
177
+
178
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
179
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
180
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
181
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
182
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
183
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
184
+ SOFTWARE.
185
+ ```
186
+
187
+ ## tree-sitter-rust 0.24.0
188
+
189
+ ```
190
+ The MIT License (MIT)
191
+
192
+ Copyright (c) 2017 Maxim Sokolov
193
+
194
+ Permission is hereby granted, free of charge, to any person obtaining a copy
195
+ of this software and associated documentation files (the "Software"), to deal
196
+ in the Software without restriction, including without limitation the rights
197
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
198
+ copies of the Software, and to permit persons to whom the Software is
199
+ furnished to do so, subject to the following conditions:
200
+
201
+ The above copyright notice and this permission notice shall be included in all
202
+ copies or substantial portions of the Software.
203
+
204
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
205
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
206
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
207
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
208
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
209
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
210
+ SOFTWARE.
211
+ ```
212
+
213
+ ## tree-sitter-php 0.24.2
214
+
215
+ ```
216
+ The MIT License (MIT)
217
+
218
+ Copyright (c) 2017 Josh Vera, GitHub
219
+ Copyright (c) 2019 Max Brunsfeld, Amaan Qureshi, Christian Frøystad, Caleb White
220
+
221
+ Permission is hereby granted, free of charge, to any person obtaining a copy
222
+ of this software and associated documentation files (the "Software"), to deal
223
+ in the Software without restriction, including without limitation the rights
224
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
225
+ copies of the Software, and to permit persons to whom the Software is
226
+ furnished to do so, subject to the following conditions:
227
+
228
+ The above copyright notice and this permission notice shall be included in all
229
+ copies or substantial portions of the Software.
230
+
231
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
232
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
233
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
234
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
235
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
236
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
237
+ SOFTWARE.
238
+ ```
239
+
240
+ ## tree-sitter-ruby 0.23.1
241
+
242
+ ```
243
+ The MIT License (MIT)
244
+
245
+ Copyright (c) 2016 Rob Rix
246
+
247
+ Permission is hereby granted, free of charge, to any person obtaining a copy
248
+ of this software and associated documentation files (the "Software"), to deal
249
+ in the Software without restriction, including without limitation the rights
250
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
251
+ copies of the Software, and to permit persons to whom the Software is
252
+ furnished to do so, subject to the following conditions:
253
+
254
+ The above copyright notice and this permission notice shall be included in all
255
+ copies or substantial portions of the Software.
256
+
257
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
258
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
259
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
260
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
261
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
262
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
263
+ SOFTWARE.
264
+ ```
@@ -0,0 +1,134 @@
1
+ {
2
+ "note": "Vendored grammar WASM files and tags queries for the fast context map. See NOTICE.md.",
3
+ "runtime": {
4
+ "file": "web-tree-sitter.wasm",
5
+ "package": "web-tree-sitter",
6
+ "version": "0.27.1",
7
+ "license": "MIT",
8
+ "sha256": "beca80e44cccbf2299ed4d1e3fa6462a9a6fe818aeebf847547a392227ce4acc"
9
+ },
10
+ "grammars": {
11
+ "typescript": {
12
+ "wasm": "tree-sitter-typescript.wasm",
13
+ "query": "queries/typescript.scm",
14
+ "package": "tree-sitter-typescript",
15
+ "version": "0.23.2",
16
+ "license": "MIT",
17
+ "queriesFrom": [
18
+ "tree-sitter-javascript@0.25.0",
19
+ "tree-sitter-typescript@0.23.2"
20
+ ],
21
+ "wasmSha256": "778025db5a8be0e70f8ccc3671e486dfeddd048c25d9e8a70c26de2e1bf6f97d",
22
+ "querySha256": "58bebd6fd47cec5f42e64775ee641aceb48f6c5e3d51768b87ce7b6de9bd8507"
23
+ },
24
+ "tsx": {
25
+ "wasm": "tree-sitter-tsx.wasm",
26
+ "query": "queries/tsx.scm",
27
+ "package": "tree-sitter-typescript",
28
+ "version": "0.23.2",
29
+ "license": "MIT",
30
+ "queriesFrom": [
31
+ "tree-sitter-javascript@0.25.0",
32
+ "tree-sitter-typescript@0.23.2"
33
+ ],
34
+ "wasmSha256": "79e5da75ea62855a0cd67177685f0164eac87d5f630b3cbe1e0a099751ad30f8",
35
+ "querySha256": "c82b77322d88726b00aa822c50acdd1b3703458bea2a468c8c1c6d1cac36b2c6"
36
+ },
37
+ "javascript": {
38
+ "wasm": "tree-sitter-javascript.wasm",
39
+ "query": "queries/javascript.scm",
40
+ "package": "tree-sitter-javascript",
41
+ "version": "0.25.0",
42
+ "license": "MIT",
43
+ "queriesFrom": [
44
+ "tree-sitter-javascript@0.25.0"
45
+ ],
46
+ "wasmSha256": "5fb488d0cabb4775a594bab85682de5ad6ce83c0d6ac997a9f82dd084d571240",
47
+ "querySha256": "278b060f67c48356e52955acdbafd80e262467d9af78175040d12d5a1c2b1ea8"
48
+ },
49
+ "python": {
50
+ "wasm": "tree-sitter-python.wasm",
51
+ "query": "queries/python.scm",
52
+ "package": "tree-sitter-python",
53
+ "version": "0.25.0",
54
+ "license": "MIT",
55
+ "queriesFrom": [
56
+ "tree-sitter-python@0.25.0"
57
+ ],
58
+ "wasmSha256": "16108b50df4ee9a30168794252ab55e7c93bfc5765d7fa0aa3e335752c515f47",
59
+ "querySha256": "91952be5ecb03f8e3c54d484722f1a21d1b0a3abd40d83372730af3914ac8a88"
60
+ },
61
+ "go": {
62
+ "wasm": "tree-sitter-go.wasm",
63
+ "query": "queries/go.scm",
64
+ "package": "tree-sitter-go",
65
+ "version": "0.25.0",
66
+ "license": "MIT",
67
+ "queriesFrom": [
68
+ "tree-sitter-go@0.25.0"
69
+ ],
70
+ "wasmSha256": "9504573f352b20be7f2f1911754d710622aedc15afff16d5ed8fb5645681aee7",
71
+ "querySha256": "232bc3257c74a7bb976565732cad82d55257f4751a32b9527350bc43be3c66dd"
72
+ },
73
+ "java": {
74
+ "wasm": "tree-sitter-java.wasm",
75
+ "query": "queries/java.scm",
76
+ "package": "tree-sitter-java",
77
+ "version": "0.23.5",
78
+ "license": "MIT",
79
+ "queriesFrom": [
80
+ "tree-sitter-java@0.23.5"
81
+ ],
82
+ "wasmSha256": "4fdeac4ca6ca089f06c6f7e562abcac1733cd465728cc7031ebb73c2019122c4",
83
+ "querySha256": "867f26b73f2041ba6f524af8d62bdb9d3a32b47b0bef9464a78764c3b2803e25"
84
+ },
85
+ "csharp": {
86
+ "wasm": "tree-sitter-csharp.wasm",
87
+ "query": "queries/csharp.scm",
88
+ "package": "tree-sitter-c-sharp",
89
+ "version": "0.23.5",
90
+ "license": "MIT",
91
+ "queriesFrom": [
92
+ "tree-sitter-c-sharp@0.23.5"
93
+ ],
94
+ "wasmSha256": "6f69e1cae44e1c32c1eccc170dc5a9778fb94ff716f71113fe1f8c4299aa2f40",
95
+ "querySha256": "5d269d01605e7b62310f9b6aff9ea76b6f55e4cf9af88d652526635aa266ed94"
96
+ },
97
+ "rust": {
98
+ "wasm": "tree-sitter-rust.wasm",
99
+ "query": "queries/rust.scm",
100
+ "package": "tree-sitter-rust",
101
+ "version": "0.24.0",
102
+ "license": "MIT",
103
+ "queriesFrom": [
104
+ "tree-sitter-rust@0.24.0"
105
+ ],
106
+ "wasmSha256": "f65f354215611fd94ad34134b3427eb3d58cbb745df7b6509ba722184db73d57",
107
+ "querySha256": "89bcd01d17e320a827feaee743c5a21e9f37721e7c46943c0880597b533e377e"
108
+ },
109
+ "php": {
110
+ "wasm": "tree-sitter-php.wasm",
111
+ "query": "queries/php.scm",
112
+ "package": "tree-sitter-php",
113
+ "version": "0.24.2",
114
+ "license": "MIT",
115
+ "queriesFrom": [
116
+ "tree-sitter-php@0.24.2"
117
+ ],
118
+ "wasmSha256": "d4df6a6ff08c87c3ec4f9cbb785fe09998a0cb570e03f57d7b19b3acfb146aa7",
119
+ "querySha256": "f15b80793ea85d88b450ba08746eeeadb8dc00effe11caa8dd468ecbf0fb8066"
120
+ },
121
+ "ruby": {
122
+ "wasm": "tree-sitter-ruby.wasm",
123
+ "query": "queries/ruby.scm",
124
+ "package": "tree-sitter-ruby",
125
+ "version": "0.23.1",
126
+ "license": "MIT",
127
+ "queriesFrom": [
128
+ "tree-sitter-ruby@0.23.1"
129
+ ],
130
+ "wasmSha256": "09a96427d7c72f0613ed470cd9812223fc4a91d6a9c025c0235cc6bd59ff96f4",
131
+ "querySha256": "fad8673fdc6a4b4f99a1421c5850622e96098c3c4f399b64f2348743b4c07390"
132
+ }
133
+ }
134
+ }
@@ -0,0 +1,64 @@
1
+ ; ---------------------------------------------------------------------------
2
+ ; From tree-sitter-c-sharp 0.23.5, queries/tags.scm, unchanged.
3
+ ; https://github.com/tree-sitter/tree-sitter-c-sharp
4
+ ;
5
+ ; The MIT License (MIT)
6
+ ;
7
+ ; Copyright (c) 2014-2023 Max Brunsfeld, Damien Guard, Amaan Qureshi, and contributors.
8
+ ;
9
+ ; Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ ; of this software and associated documentation files (the "Software"), to deal
11
+ ; in the Software without restriction, including without limitation the rights
12
+ ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ ; copies of the Software, and to permit persons to whom the Software is
14
+ ; furnished to do so, subject to the following conditions:
15
+ ;
16
+ ; The above copyright notice and this permission notice shall be included in all
17
+ ; copies or substantial portions of the Software.
18
+ ;
19
+ ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ ; SOFTWARE.
26
+ ; ---------------------------------------------------------------------------
27
+
28
+ (class_declaration name: (identifier) @name) @definition.class
29
+
30
+ (class_declaration (base_list (_) @name)) @reference.class
31
+
32
+ (interface_declaration name: (identifier) @name) @definition.interface
33
+
34
+ (interface_declaration (base_list (_) @name)) @reference.interface
35
+
36
+ (method_declaration name: (identifier) @name) @definition.method
37
+
38
+ (object_creation_expression type: (identifier) @name) @reference.class
39
+
40
+ (type_parameter_constraints_clause (identifier) @name) @reference.class
41
+
42
+ (type_parameter_constraint (type type: (identifier) @name)) @reference.class
43
+
44
+ (variable_declaration type: (identifier) @name) @reference.class
45
+
46
+ (invocation_expression function: (member_access_expression name: (identifier) @name)) @reference.send
47
+
48
+ (namespace_declaration name: (identifier) @name) @definition.module
49
+
50
+ (namespace_declaration name: (identifier) @name) @module
51
+
52
+ ; ---------------------------------------------------------------------------
53
+ ; Perch additions (MIT): module imports (@import), exported constants and
54
+ ; types, and a few more definitions and references.
55
+ ; ---------------------------------------------------------------------------
56
+ (using_directive (qualified_name) @import)
57
+ (using_directive (identifier) @import)
58
+ (struct_declaration name: (identifier) @name) @definition.class
59
+ (enum_declaration name: (identifier) @name) @definition.enum
60
+ (record_declaration name: (identifier) @name) @definition.class
61
+ (constructor_declaration name: (identifier) @name) @definition.method
62
+ (property_declaration name: (identifier) @name) @definition.property
63
+ (file_scoped_namespace_declaration name: (_) @name) @definition.module
64
+ (invocation_expression function: (identifier) @name) @reference.call
@@ -0,0 +1,77 @@
1
+ ; ---------------------------------------------------------------------------
2
+ ; From tree-sitter-go 0.25.0, queries/tags.scm, unchanged.
3
+ ; https://github.com/tree-sitter/tree-sitter-go
4
+ ;
5
+ ; The MIT License (MIT)
6
+ ;
7
+ ; Copyright (c) 2014 Max Brunsfeld
8
+ ;
9
+ ; Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ ; of this software and associated documentation files (the "Software"), to deal
11
+ ; in the Software without restriction, including without limitation the rights
12
+ ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ ; copies of the Software, and to permit persons to whom the Software is
14
+ ; furnished to do so, subject to the following conditions:
15
+ ;
16
+ ; The above copyright notice and this permission notice shall be included in all
17
+ ; copies or substantial portions of the Software.
18
+ ;
19
+ ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ ; SOFTWARE.
26
+ ; ---------------------------------------------------------------------------
27
+
28
+ (
29
+ (comment)* @doc
30
+ .
31
+ (function_declaration
32
+ name: (identifier) @name) @definition.function
33
+ (#strip! @doc "^//\\s*")
34
+ (#set-adjacent! @doc @definition.function)
35
+ )
36
+
37
+ (
38
+ (comment)* @doc
39
+ .
40
+ (method_declaration
41
+ name: (field_identifier) @name) @definition.method
42
+ (#strip! @doc "^//\\s*")
43
+ (#set-adjacent! @doc @definition.method)
44
+ )
45
+
46
+ (call_expression
47
+ function: [
48
+ (identifier) @name
49
+ (parenthesized_expression (identifier) @name)
50
+ (selector_expression field: (field_identifier) @name)
51
+ (parenthesized_expression (selector_expression field: (field_identifier) @name))
52
+ ]) @reference.call
53
+
54
+ (type_spec
55
+ name: (type_identifier) @name) @definition.type
56
+
57
+ (type_identifier) @name @reference.type
58
+
59
+ (package_clause "package" (package_identifier) @name)
60
+
61
+ (type_declaration (type_spec name: (type_identifier) @name type: (interface_type)))
62
+
63
+ (type_declaration (type_spec name: (type_identifier) @name type: (struct_type)))
64
+
65
+ (import_declaration (import_spec) @name)
66
+
67
+ (var_declaration (var_spec name: (identifier) @name))
68
+
69
+ (const_declaration (const_spec name: (identifier) @name))
70
+
71
+ ; ---------------------------------------------------------------------------
72
+ ; Perch additions (MIT): module imports (@import), exported constants and
73
+ ; types, and a few more definitions and references.
74
+ ; ---------------------------------------------------------------------------
75
+ (import_spec path: (interpreted_string_literal) @import)
76
+ (const_declaration (const_spec name: (identifier) @name) @definition.constant)
77
+ (source_file (var_declaration (var_spec name: (identifier) @name) @definition.variable))
@@ -0,0 +1,57 @@
1
+ ; ---------------------------------------------------------------------------
2
+ ; From tree-sitter-java 0.23.5, queries/tags.scm, unchanged.
3
+ ; https://github.com/tree-sitter/tree-sitter-java
4
+ ;
5
+ ; MIT License
6
+ ;
7
+ ; Copyright (c) 2017 Ayman Nadeem
8
+ ;
9
+ ; Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ ; of this software and associated documentation files (the "Software"), to deal
11
+ ; in the Software without restriction, including without limitation the rights
12
+ ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ ; copies of the Software, and to permit persons to whom the Software is
14
+ ; furnished to do so, subject to the following conditions:
15
+ ;
16
+ ; The above copyright notice and this permission notice shall be included in all
17
+ ; copies or substantial portions of the Software.
18
+ ;
19
+ ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ ; SOFTWARE.
26
+ ; ---------------------------------------------------------------------------
27
+
28
+ (class_declaration
29
+ name: (identifier) @name) @definition.class
30
+
31
+ (method_declaration
32
+ name: (identifier) @name) @definition.method
33
+
34
+ (method_invocation
35
+ name: (identifier) @name
36
+ arguments: (argument_list) @reference.call)
37
+
38
+ (interface_declaration
39
+ name: (identifier) @name) @definition.interface
40
+
41
+ (type_list
42
+ (type_identifier) @name) @reference.implementation
43
+
44
+ (object_creation_expression
45
+ type: (type_identifier) @name) @reference.class
46
+
47
+ (superclass (type_identifier) @name) @reference.class
48
+
49
+ ; ---------------------------------------------------------------------------
50
+ ; Perch additions (MIT): module imports (@import), exported constants and
51
+ ; types, and a few more definitions and references.
52
+ ; ---------------------------------------------------------------------------
53
+ (import_declaration (scoped_identifier) @import)
54
+ (enum_declaration name: (identifier) @name) @definition.enum
55
+ (record_declaration name: (identifier) @name) @definition.class
56
+ (constructor_declaration name: (identifier) @name) @definition.method
57
+ (annotation_type_declaration name: (identifier) @name) @definition.interface