@exercism/codemirror-lang-gdscript 0.0.0-stage → 1.0.1

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.
package/dist/index.cjs ADDED
@@ -0,0 +1,679 @@
1
+ 'use strict';
2
+
3
+ var lr = require('@lezer/lr');
4
+ var language = require('@codemirror/language');
5
+ var highlight = require('@lezer/highlight');
6
+ var autocomplete = require('@codemirror/autocomplete');
7
+ var common = require('@lezer/common');
8
+
9
+ // This file was generated by lezer-generator. You probably shouldn't edit it.
10
+ const indent = 170,
11
+ dedent = 171,
12
+ newline = 172,
13
+ blankLineStart = 173,
14
+ newlineBracketed = 174,
15
+ eof = 175,
16
+ afterBlock = 176,
17
+ stringContent = 177,
18
+ Escape = 1,
19
+ stringEnd = 178,
20
+ BracketL = 14,
21
+ TypeArgs = 15,
22
+ ParenL = 50,
23
+ ArgList = 51,
24
+ Subscript = 54,
25
+ ParenthesizedExpression = 55,
26
+ ArrayExpression = 56,
27
+ BraceL = 58,
28
+ DictionaryExpression = 59,
29
+ String = 68,
30
+ stringStart = 207,
31
+ stringStartD = 208,
32
+ stringStartL = 209,
33
+ stringStartLD = 210,
34
+ stringStartR = 211,
35
+ stringStartRD = 212,
36
+ stringStartRL = 213,
37
+ stringStartRLD = 214,
38
+ ParamList = 78,
39
+ EnumBody = 108,
40
+ ArrayPattern = 137,
41
+ DictionaryPattern = 140;
42
+
43
+ // The indentation, newline and string tokenizers. They are adapted from
44
+ // @lezer/python (MIT, Marijn Haverbeke), because GDScript marks its blocks
45
+ // with indentation in the same way.
46
+ const bracketed = new Set([
47
+ ParamList,
48
+ ArgList,
49
+ ParenthesizedExpression,
50
+ ArrayExpression,
51
+ DictionaryExpression,
52
+ Subscript,
53
+ TypeArgs,
54
+ EnumBody,
55
+ ArrayPattern,
56
+ DictionaryPattern,
57
+ ]);
58
+ // A closing bracket or a comma can end a lambda's block inside brackets.
59
+ function isCloser(ch) {
60
+ return ch == 41 /* Ch.ParenR */ || ch == 93 /* Ch.BracketR */ || ch == 125 /* Ch.BraceR */ || ch == 44 /* Ch.Comma */;
61
+ }
62
+ // True when the block is a lambda's body, or nested in one, inside brackets.
63
+ function insideBrackets(context) {
64
+ for (let cx = context; cx; cx = cx.parent)
65
+ if (cx.flags & cx_Bracketed)
66
+ return true;
67
+ return false;
68
+ }
69
+ function isLineBreak(ch) {
70
+ return ch == 10 /* Ch.Newline */ || ch == 13 /* Ch.Return */;
71
+ }
72
+ // Flags used in Context objects
73
+ const cx_Bracketed = 1, cx_String = 2, cx_DoubleQuote = 4, cx_Long = 8, cx_Raw = 16;
74
+ class Context {
75
+ constructor(parent, indent, flags) {
76
+ this.parent = parent;
77
+ this.indent = indent;
78
+ this.flags = flags;
79
+ this.hash =
80
+ (parent ? (parent.hash + parent.hash) << 8 : 0) + indent + (indent << 4) + flags + (flags << 6);
81
+ }
82
+ }
83
+ // Godot's editor shows a tab as 4 columns. Some solutions mix tabs and spaces,
84
+ // and they line up when a tab counts as 4.
85
+ const tabWidth = 4;
86
+ const topIndent = new Context(null, 0, 0);
87
+ function countIndent(space) {
88
+ let depth = 0;
89
+ for (let i = 0; i < space.length; i++)
90
+ depth += space.charCodeAt(i) == 9 /* Ch.Tab */ ? tabWidth - (depth % tabWidth) : 1;
91
+ return depth;
92
+ }
93
+ const newlines = new lr.ExternalTokenizer((input, stack) => {
94
+ let prev;
95
+ if (input.next < 0) {
96
+ input.acceptToken(eof);
97
+ }
98
+ else if (stack.context.flags & cx_Bracketed) {
99
+ // Inside brackets, a line break only counts after the `:` of a lambda
100
+ // that has a block for its body.
101
+ if (isLineBreak(input.next))
102
+ input.acceptToken(stack.canShift(newline) ? newline : newlineBracketed, 1);
103
+ }
104
+ else if (((prev = input.peek(-1)) < 0 || isLineBreak(prev)) &&
105
+ (stack.canShift(blankLineStart) || stack.canShift(afterBlock))) {
106
+ let spaces = 0;
107
+ while (input.next == 32 /* Ch.Space */ || input.next == 9 /* Ch.Tab */) {
108
+ input.advance();
109
+ spaces++;
110
+ }
111
+ if (input.next == 10 /* Ch.Newline */ || input.next == 13 /* Ch.Return */ || input.next == 35 /* Ch.Hash */) {
112
+ if (stack.canShift(blankLineStart))
113
+ input.acceptToken(blankLineStart, -spaces);
114
+ }
115
+ else if (stack.canShift(afterBlock)) {
116
+ // A block ended on the line before, and it closed the statement around it.
117
+ input.acceptToken(afterBlock, -spaces);
118
+ }
119
+ }
120
+ else if (isLineBreak(input.next)) {
121
+ input.acceptToken(newline, 1);
122
+ }
123
+ else if (isCloser(input.next) && insideBrackets(stack.context) && stack.canShift(afterBlock)) {
124
+ // In `xs.map(func (x):\n\t\treturn x)`, the bracket ends the lambda's last statement.
125
+ input.acceptToken(afterBlock);
126
+ }
127
+ }, { contextual: true });
128
+ const indentation = new lr.ExternalTokenizer((input, stack) => {
129
+ let context = stack.context;
130
+ // A lambda's block can start inside brackets.
131
+ if (context.flags && !(context.flags == cx_Bracketed && stack.canShift(indent)))
132
+ return;
133
+ let prev = input.peek(-1);
134
+ if (isCloser(input.next) && insideBrackets(context) && stack.canShift(dedent)) {
135
+ input.acceptToken(dedent);
136
+ }
137
+ else if (prev == 10 /* Ch.Newline */ || prev == 13 /* Ch.Return */) {
138
+ let depth = 0, chars = 0;
139
+ for (;;) {
140
+ if (input.next == 32 /* Ch.Space */)
141
+ depth++;
142
+ else if (input.next == 9 /* Ch.Tab */)
143
+ depth += tabWidth - (depth % tabWidth);
144
+ else
145
+ break;
146
+ input.advance();
147
+ chars++;
148
+ }
149
+ if (depth != context.indent && input.next != 10 /* Ch.Newline */ && input.next != 13 /* Ch.Return */ && input.next != 35 /* Ch.Hash */) {
150
+ if (depth < context.indent)
151
+ input.acceptToken(dedent, -chars);
152
+ else
153
+ input.acceptToken(indent);
154
+ }
155
+ }
156
+ });
157
+ const stringFlags = new Map([
158
+ [stringStart, 0],
159
+ [stringStartD, cx_DoubleQuote],
160
+ [stringStartL, cx_Long],
161
+ [stringStartLD, cx_Long | cx_DoubleQuote],
162
+ [stringStartR, cx_Raw],
163
+ [stringStartRD, cx_Raw | cx_DoubleQuote],
164
+ [stringStartRL, cx_Raw | cx_Long],
165
+ [stringStartRLD, cx_Raw | cx_Long | cx_DoubleQuote],
166
+ ].map(([term, flags]) => [term, flags | cx_String]));
167
+ const trackIndent = new lr.ContextTracker({
168
+ start: topIndent,
169
+ reduce(context, term) {
170
+ if ((context.flags & cx_Bracketed && bracketed.has(term)) ||
171
+ (term == String && context.flags & cx_String))
172
+ return context.parent;
173
+ return context;
174
+ },
175
+ shift(context, term, stack, input) {
176
+ if (term == indent)
177
+ return new Context(context, countIndent(input.read(input.pos, stack.pos)), 0);
178
+ if (term == dedent)
179
+ return context.parent;
180
+ if (term == ParenL || term == BracketL || term == BraceL)
181
+ return new Context(context, 0, cx_Bracketed);
182
+ if (stringFlags.has(term))
183
+ return new Context(context, 0, stringFlags.get(term) | (context.flags & cx_Bracketed));
184
+ return context;
185
+ },
186
+ hash(context) {
187
+ return context.hash;
188
+ },
189
+ });
190
+ const strings = new lr.ExternalTokenizer((input, stack) => {
191
+ let { flags } = stack.context;
192
+ let quote = flags & cx_DoubleQuote ? 34 /* Ch.DoubleQuote */ : 39 /* Ch.SingleQuote */;
193
+ let long = (flags & cx_Long) > 0;
194
+ let escapes = !(flags & cx_Raw);
195
+ let start = input.pos;
196
+ for (;;) {
197
+ if (input.next < 0) {
198
+ break;
199
+ }
200
+ else if (escapes && input.next == 92 /* Ch.Backslash */) {
201
+ if (input.pos == start) {
202
+ input.advance();
203
+ // An escape covers one character. Longer escapes such as `é`
204
+ // read their remaining characters as string content.
205
+ if (input.next >= 0)
206
+ input.advance();
207
+ input.acceptToken(Escape);
208
+ return;
209
+ }
210
+ break;
211
+ }
212
+ else if (input.next == 92 /* Ch.Backslash */ && !escapes && input.peek(1) > -1) {
213
+ // A raw string still can't hold its own quote after a backslash.
214
+ input.advance(2);
215
+ }
216
+ else if (input.next == quote && (!long || (input.peek(1) == quote && input.peek(2) == quote))) {
217
+ if (input.pos == start) {
218
+ input.acceptToken(stringEnd, long ? 3 : 1);
219
+ return;
220
+ }
221
+ break;
222
+ }
223
+ else {
224
+ input.advance();
225
+ }
226
+ }
227
+ if (input.pos > start)
228
+ input.acceptToken(stringContent);
229
+ });
230
+
231
+ // This file was generated by lezer-generator. You probably shouldn't edit it.
232
+ const spec_identifier = {__proto__:null,static:10, var:12, not:58, in:60, and:62, or:66, if:80, else:82, as:86, is:90, await:94, self:128, super:132, true:144, false:144, null:148, PI:150, TAU:150, INF:150, NAN:150, func:154, return:170, pass:184, set:191, get:199, const:204, signal:210, enum:214, class_name:224, extends:226, break:232, continue:236, breakpoint:240, elif:248, while:252, for:256, match:260, when:287, class:292};
233
+ const parser = lr.LRParser.deserialize({
234
+ version: 14,
235
+ states: "!)nQ`QYOOP$bOQOOO&TQbO'#EUOOQQ'#DQ'#DQOOQQ'#DR'#DROOQQ'#DS'#DSO&zQYO'#DPO&zQYO'#DPO&zQYO'#DeO(qQYO'#DfO({QYO'#DiOOQR'#Dl'#DlO)SOSO'#DrO#vQYO'#DsO#vQYO'#DtOOQQ'#Dw'#DwOOQQ'#Gb'#GbOOQQ'#G['#G[O)_QYO'#GZOOQR'#GZ'#GZOOQR'#HU'#HUO)mQrO'#FfOOQQ'#Fz'#FzO)rQYO'#FeOOQR'#GY'#GYOOQR'#Fi'#FiQ`QYOOO&zQYO'#D[OOQQ'#Dm'#DmOOQQ'#Do'#DoO*PQYO'#ESOOQQ'#EZ'#EZO*sQYO'#C`O*xQYO'#C`O*sQYO'#EeO*sQYO'#EhO+TQYO'#EjO*sQYO'#EoO+]QYO'#ErOOQQ'#Es'#EsOOQQ'#Eu'#EuOOQQ'#Ew'#EwO&zQYO'#E{O&zQYO'#E}O*sQYO'#FPO&zQYO'#FRO*sQYO'#FbO*sQYO'#FcP+dOYO'#GXPOOO)CA{)CA{OOQQ'#Co'#CoOOQQ'#Cp'#CpOOQQ'#Cq'#CqOOQQ'#Cr'#CrOOQQ'#C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!}Y$n&S'^Q#akQ#rzQ#s{Q#u}Q#{!]Q#|!^Q#}!_Q$O!`Q$P!aQ$Q!bQ$R!cQ$S!dQ$T!eQ$U!fQ$X!iQ$^!oQ$`!qQ%o$_Q&e%SQ&v%dQ&}%pQ'k&bQ'o&gQ'y&tQ'|&wQ(P'QQ(b'lQ(x(QQ)i(yR)x)eQ!zXR$W!gR#QYR%z$iQ%x$iV(S'T(T(zR'Y%|Q)Q(]R)j({T&X$x&^S&W$x&^U(X'_(Y(|T(['a(]R%Y#jQ#qvQ&k%[R&{%jQ#ZbQ#_gR$v#Y[hOj'v(V(h({R#_gT(t'}(vS(s'}(vQ)Y(pU)t)a)u*QU)y)m)z*RR)|)pR)[(pR)`(q",
238
+ nodeNames: "⚠ Escape Comment Script VariableDeclaration static var VariableDefinition TypeDef : Type TypeName . ] [ TypeArgs , AssignOp BinaryExpression ArithOp ArithOp ArithOp BitOp BitOp & BitOp ^ BitOp CompareOp not in and LogicOp or LogicOp UnaryExpression ArithOp BitOp LogicOp ConditionalExpression if else CastExpression as TypeTestExpression is AwaitExpression await CallExpression ) ( ArgList MemberExpression PropertyName Subscript ParenthesizedExpression ArrayExpression } { DictionaryExpression DictionaryEntry AssignOp VariableName Self self Super super Number String StringName NodePath GetNode Boolean Null null Constant LambdaExpression func ParamList ... AssignOp ReturnType -> LambdaBody ReturnStatement return ExpressionStatement AssignStatement AssignOp UpdateStatement UpdateOp PassStatement pass PropertyBody Setter set AssignOp Body Getter get AssignOp ConstantDeclaration const AssignOp SignalStatement signal EnumDefinition enum EnumBody EnumMember AssignOp ClassNameStatement class_name extends ExtendsStatement BreakStatement break ContinueStatement continue BreakpointStatement breakpoint StatementGroup ; IfStatement elif WhileStatement while ForStatement for MatchStatement match MatchBody MatchClause LiteralPattern ArithOp ConstantPattern BindingPattern ArrayPattern RestPattern .. DictionaryPattern DictionaryPatternEntry Guard when FunctionDefinition ClassDefinition class AnnotatedStatement Annotation At AnnotationName",
239
+ maxTerm: 228,
240
+ context: trackIndent,
241
+ nodeProps: [
242
+ ["isolate", -2,2,68,""],
243
+ ["group", -22,4,84,86,87,89,91,101,104,106,111,114,115,117,119,121,123,125,127,129,144,145,147,"Statement",-22,18,35,39,42,44,46,48,52,55,56,59,62,63,65,67,68,69,70,71,72,73,75,"Expression",-5,133,135,136,137,140,"Pattern"],
244
+ ["openedBy", 13,"[",49,"(",57,"{"],
245
+ ["closedBy", 14,"]",50,")",58,"}"]
246
+ ],
247
+ skippedNodes: [0,2],
248
+ repeatNodeCount: 18,
249
+ tokenData: "5[~RzXY#u[]#upq#uqr$grs$tst%Xtu%suv(wvw*]wx*mxy+Qyz+Vz{+[{|+o|}+w}!O+|!O!P,^!P!Q-v!Q!R.O!R![.p![!]0b!]!^0o!^!_0t!_!`1X!`!a1a!b!c1t!c!}1y!}#O2m#O#P$W#P#Q2r#Q#R2w#R#S1y#T#f1y#f#g3P#g#o1y#o#p4k#p#q4p#q#r5Q#r#s5V$g;'S1y;'S;=`2g<%lO1y~#zS$z~XY#u[]#upq#u#O#P$W~$ZQYZ#u]^$a~$dPYZ#uR$lP%cP!_!`$oQ$tOlQ~$yP%h~rs$|~%PPrs%S~%XO%j~~%^TQ~OY%XZ]%X^;'S%X;'S;=`%m<%lO%X~%pP;=`<%l%XP%vWrs&`wx'Q!c!}'m#R#S'm#T#o'm$g;'S'm;'S;=`(q<%lO'mP&cUOY&`Zr&`rs&us;'S&`;'S;=`&z<%lO&`P&zO!iPP&}P;=`<%l&`P'TUOY'QZw'Qwx&ux;'S'Q;'S;=`'g<%lO'QP'jP;=`<%l'QP'rW!iP!P!Q([!Q!['m!c!}'m#R#S'm#T#o'm$g;'S'm;'S;=`(q<%lO'mP(_U!c!}'m#R#S'm#T#o'm$g;'S'm;'S;=`(q<%lO'mP(tP;=`<%l'm~(|W%YQrs&`!_!`)f!c!})k#R#S)k#T#o)k$g;'S)k;'S;=`*V<%lO)k~)kO!|~P)pV!iP!Q![)k!c!})k#R#S)k#T#o)k$g;'S)k;'S;=`*V<%lO)kP*YP;=`<%l)k~*bQh~vw*h!_!`)f~*mO%`~~*rP%g~wx*u~*xPwx*{~+QO%i~~+VO!S~~+[O!R~~+aQ%W~z{+g!_!`)f~+lP%V~!_!`)f~+tP%Z~!_!`)f~+|O`~~,RQ%[c!_!`)f!`!a,XS,^O!tS~,cQ[R!O!P,i!Q![,vh,nP$P`!O!P,qW,vO!qW~,{S!e~!Q![,v!g!h-X#R#S,v#X#Y-X~-[R{|-e}!O-e!Q![-k~-hP!Q![-k~-pQ!e~!Q![-k#R#S-k~-{P%X~!_!`)f~.TX!e~!O!P,v!Q![.p!d!e/U!g!h-X!z!{/p#R#S.p#U#V/U#X#Y-X#l#m/p~.uT!e~!O!P,v!Q![.p!g!h-X#R#S.p#X#Y-X~/XR!Q!R/b!R!S/b#R#S/b~/gR!e~!Q!R/b!R!S/b#R#S/b~/sS!Q![0P!c!i0P#R#S0P#T#Z0P~0US!e~!Q![0P!c!i0P#R#S0P#T#Z0P~0gPX~!_!`0j~0oO%S~~0tO#n~~0yQlQ!^!_1P!_!`$o~1UP%]~!_!`)f~1^P%R~!_!`$o~1fQlQ!_!`$o!`!a1l~1qP%^~!_!`)f~1yO$Z~o2QV%eS%Pk!Q![1y!c!}1y#R#S1y#T#o1y$g;'S1y;'S;=`2g<%lO1yo2jP;=`<%l1y~2rO^~~2wO]~~2|Pj~!_!`)fo3WX%eS%Pkrs3swx4W!Q![1y!c!}1y#R#S1y#T#o1y$g;'S1y;'S;=`2g<%lO1ya3xP%lars3{a4OPrs4Ra4WO%naa4]P%kawx4`a4cPwx4fa4kO%ma~4pO![~~4uQ%_~!_!`)f#p#q4{~5QO%a~~5VO!Z~~5[O%b~",
250
+ tokenizers: [indentation, newlines, strings, 0, 1, 2, 3, 4],
251
+ topRules: {"Script":[0,3]},
252
+ specialized: [{term: 185, get: (value) => spec_identifier[value] || -1}],
253
+ tokenPrec: 4260
254
+ });
255
+
256
+ // Completion for GDScript. The scope walk follows @codemirror/lang-python's
257
+ // localCompletionSource (MIT).
258
+ /// Snippets for the constructs people write most often in GDScript.
259
+ const snippets = [
260
+ autocomplete.snippetCompletion("func ${name}(${params}):\n\t${pass}", { label: "func", detail: "function", type: "keyword" }),
261
+ autocomplete.snippetCompletion("func ${name}(${params}) -> ${void}:\n\t${pass}", {
262
+ label: "func",
263
+ detail: "with return type",
264
+ type: "keyword",
265
+ }),
266
+ autocomplete.snippetCompletion("static func ${name}(${params}):\n\t${pass}", {
267
+ label: "static func",
268
+ detail: "function",
269
+ type: "keyword",
270
+ }),
271
+ autocomplete.snippetCompletion("func(${params}): ${}", { label: "func", detail: "lambda", type: "keyword" }),
272
+ autocomplete.snippetCompletion("class_name ${Name}\nextends ${RefCounted}\n\n${}", {
273
+ label: "class_name",
274
+ detail: "header with extends",
275
+ type: "keyword",
276
+ }),
277
+ autocomplete.snippetCompletion("extends ${Node}\n\n${}", { label: "extends", detail: "header", type: "keyword" }),
278
+ autocomplete.snippetCompletion("class ${Name}:\n\t${pass}", { label: "class", detail: "inner class", type: "keyword" }),
279
+ autocomplete.snippetCompletion("if ${condition}:\n\t${pass}", { label: "if", detail: "block", type: "keyword" }),
280
+ autocomplete.snippetCompletion("if ${condition}:\n\t${pass}\nelse:\n\t${pass}", { label: "if", detail: "/ else block", type: "keyword" }),
281
+ autocomplete.snippetCompletion("if ${condition}:\n\t${pass}\nelif ${condition}:\n\t${pass}\nelse:\n\t${pass}", {
282
+ label: "if",
283
+ detail: "/ elif / else block",
284
+ type: "keyword",
285
+ }),
286
+ autocomplete.snippetCompletion("elif ${condition}:\n\t${pass}", { label: "elif", detail: "block", type: "keyword" }),
287
+ autocomplete.snippetCompletion("else:\n\t${pass}", { label: "else", detail: "block", type: "keyword" }),
288
+ autocomplete.snippetCompletion("for ${item} in ${collection}:\n\t${pass}", { label: "for", detail: "loop", type: "keyword" }),
289
+ autocomplete.snippetCompletion("for ${i} in range(${n}):\n\t${pass}", { label: "for", detail: "range loop", type: "keyword" }),
290
+ autocomplete.snippetCompletion("while ${condition}:\n\t${pass}", { label: "while", detail: "loop", type: "keyword" }),
291
+ autocomplete.snippetCompletion("match ${value}:\n\t${pattern}:\n\t\t${pass}\n\t_:\n\t\t${pass}", {
292
+ label: "match",
293
+ detail: "block",
294
+ type: "keyword",
295
+ }),
296
+ autocomplete.snippetCompletion("signal ${name}(${params})", { label: "signal", detail: "declaration", type: "keyword" }),
297
+ autocomplete.snippetCompletion("enum ${Name} { ${FIRST}, ${SECOND} }", { label: "enum", detail: "definition", type: "keyword" }),
298
+ autocomplete.snippetCompletion("var ${name}: ${int}:\n\tset(value):\n\t\t${name} = value\n\tget:\n\t\treturn ${name}", {
299
+ label: "var",
300
+ detail: "with setter and getter",
301
+ type: "keyword",
302
+ }),
303
+ ];
304
+ const keywords = ("if elif else for while match when break continue pass return class class_name extends " +
305
+ "is in as not and or self super signal func static const enum var breakpoint await")
306
+ .split(" ")
307
+ .map((label) => ({ label, type: "keyword" }));
308
+ const constants = "true false null PI TAU INF NAN".split(" ").map((label) => ({ label, type: "constant" }));
309
+ /// The functions in @GlobalScope and @GDScript.
310
+ const builtinFunctions = ("abs absf absi acos acosh angle_difference asin asinh atan atan2 atanh bezier_derivative " +
311
+ "bezier_interpolate bytes_to_var bytes_to_var_with_objects ceil ceilf ceili clamp clampf clampi " +
312
+ "cos cosh cubic_interpolate cubic_interpolate_angle cubic_interpolate_angle_in_time " +
313
+ "cubic_interpolate_in_time db_to_linear deg_to_rad ease error_string exp floor floorf floori fmod " +
314
+ "fposmod hash instance_from_id inverse_lerp is_equal_approx is_finite is_inf is_instance_id_valid " +
315
+ "is_instance_valid is_nan is_same is_zero_approx lerp lerp_angle lerpf linear_to_db log max maxf " +
316
+ "maxi min minf mini move_toward nearest_po2 pingpong posmod pow print print_rich print_verbose " +
317
+ "printerr printraw prints printt push_error push_warning rad_to_deg rand_from_seed randf " +
318
+ "randf_range randfn randi randi_range randomize remap rotate_toward round roundf roundi seed sign " +
319
+ "signf signi sin sinh smoothstep snapped snappedf snappedi sqrt step_decimals str str_to_var tan " +
320
+ "tanh type_convert type_string typeof var_to_bytes var_to_bytes_with_objects var_to_str weakref " +
321
+ "wrap wrapf wrapi " +
322
+ "Color8 assert char convert dict_to_inst get_stack inst_to_dict is_instance_of len load ord " +
323
+ "preload print_debug print_stack range type_exists").split(" ");
324
+ /// The built-in Variant types, and the engine classes that scripts use most.
325
+ const builtinTypes = ("bool int float String StringName NodePath Vector2 Vector2i Rect2 Rect2i Vector3 Vector3i " +
326
+ "Transform2D Vector4 Vector4i Plane Quaternion AABB Basis Transform3D Projection Color RID " +
327
+ "Object Callable Signal Dictionary Array PackedByteArray PackedInt32Array PackedInt64Array " +
328
+ "PackedFloat32Array PackedFloat64Array PackedStringArray PackedVector2Array PackedVector3Array " +
329
+ "PackedColorArray PackedVector4Array Variant void " +
330
+ "RefCounted Resource Node Node2D Node3D Control CanvasItem Sprite2D Sprite3D CharacterBody2D " +
331
+ "CharacterBody3D RigidBody2D RigidBody3D Area2D Area3D CollisionShape2D Camera2D Camera3D " +
332
+ "AnimationPlayer Timer Label Button SceneTree PackedScene Tween Input OS Time Engine JSON " +
333
+ "RegEx RegExMatch RandomNumberGenerator FileAccess DirAccess ResourceLoader Expression Marshalls").split(" ");
334
+ /// The annotations that can follow `@`.
335
+ const annotations = ("tool icon static_unload abstract onready export export_category export_color_no_alpha " +
336
+ "export_custom export_dir export_enum export_exp_easing export_file export_file_path " +
337
+ "export_flags export_flags_2d_navigation export_flags_2d_physics export_flags_2d_render " +
338
+ "export_flags_3d_navigation export_flags_3d_physics export_flags_3d_render " +
339
+ "export_flags_avoidance export_global_dir export_global_file export_group export_multiline " +
340
+ "export_node_path export_placeholder export_range export_storage export_subgroup " +
341
+ "export_tool_button rpc warning_ignore warning_ignore_restore warning_ignore_start").split(" ");
342
+ const typeCompletions = builtinTypes.map((label) => ({ label, type: "type" }));
343
+ const globals = [
344
+ ...snippets,
345
+ ...keywords,
346
+ ...constants,
347
+ ...builtinFunctions.map((label) => ({ label, type: "function" })),
348
+ ...typeCompletions,
349
+ ];
350
+ // Nothing is offered inside these nodes. A VariableDefinition is a new name,
351
+ // and the sources below handle annotations and members.
352
+ const dontComplete = [
353
+ "String",
354
+ "StringName",
355
+ "NodePath",
356
+ "GetNode",
357
+ "Comment",
358
+ "VariableDefinition",
359
+ "PropertyName",
360
+ "AnnotationName",
361
+ "At",
362
+ ];
363
+ const Identifier = /^[\w\xa1-￿][\w\d\xa1-￿]*$/;
364
+ function afterDot(context) {
365
+ const word = context.matchBefore(/\w*/);
366
+ const from = word ? word.from : context.pos;
367
+ return from > 0 && context.state.sliceDoc(from - 1, from) == ".";
368
+ }
369
+ function inType(context) {
370
+ return language.syntaxTree(context.state).resolveInner(context.pos, -1).name == "TypeName";
371
+ }
372
+ const allGlobals = autocomplete.completeFromList(globals);
373
+ const typesOnly = autocomplete.completeFromList(typeCompletions);
374
+ /// Keywords, snippets, constants, built-in functions and types. In a type
375
+ /// annotation, it offers only types.
376
+ const globalCompletion = autocomplete.ifNotIn(dontComplete, (context) => {
377
+ if (afterDot(context) || context.matchBefore(/@\w*$/))
378
+ return null;
379
+ return inType(context) ? typesOnly(context) : allGlobals(context);
380
+ });
381
+ /// Offers the annotations after `@`.
382
+ const annotationCompletion = (context) => {
383
+ const match = context.matchBefore(/@\w*$/);
384
+ if (!match)
385
+ return null;
386
+ const inner = language.syntaxTree(context.state).resolveInner(context.pos, -1);
387
+ if (inner.name == "String" || inner.name == "Comment")
388
+ return null;
389
+ return {
390
+ from: match.from + 1,
391
+ options: annotations.map((label) => ({ label, type: "keyword", detail: "annotation" })),
392
+ validFor: /^\w*$/,
393
+ };
394
+ };
395
+ // ── Names declared in the file ────────────────────────────────────────────────
396
+ const cache = new common.NodeWeakMap();
397
+ const ScopeNodes = new Set([
398
+ "Script",
399
+ "Body",
400
+ "FunctionDefinition",
401
+ "ClassDefinition",
402
+ "LambdaExpression",
403
+ "LambdaBody",
404
+ "ForStatement",
405
+ "MatchClause",
406
+ "Setter",
407
+ ]);
408
+ function defName(type, detail) {
409
+ return (node, def, outer) => {
410
+ if (outer)
411
+ return false;
412
+ const id = node.node.getChild("VariableDefinition");
413
+ if (id)
414
+ def(id, type, detail);
415
+ return true;
416
+ };
417
+ }
418
+ const gatherCompletions = {
419
+ FunctionDefinition: defName("function"),
420
+ ClassDefinition: defName("class"),
421
+ ClassNameStatement: defName("class"),
422
+ VariableDeclaration: defName("variable"),
423
+ ConstantDeclaration: defName("constant"),
424
+ SignalStatement: defName("variable", "signal"),
425
+ EnumDefinition(node, def) {
426
+ var _a, _b;
427
+ const id = node.node.getChild("VariableDefinition");
428
+ if (id) {
429
+ def(id, "enum");
430
+ }
431
+ else {
432
+ // The members of an enum with no name are constants in the class.
433
+ for (const member of (_b = (_a = node.node.getChild("EnumBody")) === null || _a === void 0 ? void 0 : _a.getChildren("EnumMember")) !== null && _b !== void 0 ? _b : []) {
434
+ const name = member.getChild("VariableDefinition");
435
+ if (name)
436
+ def(name, "constant");
437
+ }
438
+ }
439
+ return true;
440
+ },
441
+ ForStatement(node, def, outer) {
442
+ if (!outer)
443
+ return false;
444
+ const id = node.node.getChild("VariableDefinition");
445
+ if (id)
446
+ def(id, "variable");
447
+ },
448
+ ParamList(node, def) {
449
+ for (const id of node.node.getChildren("VariableDefinition"))
450
+ def(id, "variable");
451
+ return true;
452
+ },
453
+ BindingPattern: defName("variable"),
454
+ };
455
+ function getScope(doc, node) {
456
+ const cached = cache.get(node);
457
+ if (cached)
458
+ return cached;
459
+ const completions = [];
460
+ let top = true;
461
+ const def = (node, type, detail) => {
462
+ const label = doc.sliceString(node.from, node.to);
463
+ if (label)
464
+ completions.push(detail ? { label, type, detail } : { label, type });
465
+ };
466
+ node.cursor(common.IterMode.IncludeAnonymous).iterate((node) => {
467
+ if (node.name) {
468
+ const gather = gatherCompletions[node.name];
469
+ if ((gather && gather(node, def, top)) || (!top && ScopeNodes.has(node.name)))
470
+ return false;
471
+ top = false;
472
+ }
473
+ else if (node.to - node.from > 8192) {
474
+ // Big anonymous nodes get their own cache entry.
475
+ for (const c of getScope(doc, node.node))
476
+ completions.push(c);
477
+ return false;
478
+ }
479
+ });
480
+ cache.set(node, completions);
481
+ return completions;
482
+ }
483
+ /// Offers the names declared in the file that are in scope at the cursor:
484
+ /// functions, classes, variables, constants, signals, enums, parameters,
485
+ /// loop variables and match bindings. After `Name.`, it offers the members of
486
+ /// an enum or inner class called `Name`.
487
+ function localCompletionSource(context) {
488
+ const inner = language.syntaxTree(context.state).resolveInner(context.pos, -1);
489
+ if (afterDot(context))
490
+ return inner.name == "Comment" || inner.name == "String" ? null : memberCompletion(context);
491
+ if (dontComplete.indexOf(inner.name) > -1 || context.matchBefore(/@\w*$/))
492
+ return null;
493
+ const isWord = inner.name == "VariableName" ||
494
+ inner.name == "TypeName" ||
495
+ (inner.to - inner.from < 20 && Identifier.test(context.state.sliceDoc(inner.from, inner.to)));
496
+ if (!isWord && !context.explicit)
497
+ return null;
498
+ let options = [];
499
+ for (let pos = inner; pos; pos = pos.parent) {
500
+ if (ScopeNodes.has(pos.name))
501
+ options = options.concat(getScope(context.state.doc, pos));
502
+ }
503
+ if (inner.name == "TypeName")
504
+ options = options.filter((o) => o.type == "class" || o.type == "enum");
505
+ const seen = new Set();
506
+ options = options.filter((o) => !seen.has(o.label) && seen.add(o.label));
507
+ return { options, from: isWord ? inner.from : context.pos, validFor: Identifier };
508
+ }
509
+ function memberCompletion(context) {
510
+ const match = context.matchBefore(/[\w\xa1-￿]+\.\w*$/);
511
+ if (!match)
512
+ return null;
513
+ const owner = /^[\w\xa1-￿]+/.exec(match.text)[0];
514
+ const doc = context.state.doc;
515
+ const options = [];
516
+ language.syntaxTree(context.state).iterate({
517
+ enter(node) {
518
+ var _a, _b;
519
+ if (node.name != "EnumDefinition" && node.name != "ClassDefinition")
520
+ return;
521
+ const id = node.node.getChild("VariableDefinition");
522
+ if (!id || doc.sliceString(id.from, id.to) != owner)
523
+ return;
524
+ if (node.name == "EnumDefinition") {
525
+ for (const member of (_b = (_a = node.node.getChild("EnumBody")) === null || _a === void 0 ? void 0 : _a.getChildren("EnumMember")) !== null && _b !== void 0 ? _b : []) {
526
+ const name = member.getChild("VariableDefinition");
527
+ if (name)
528
+ options.push({ label: doc.sliceString(name.from, name.to), type: "constant" });
529
+ }
530
+ }
531
+ else {
532
+ const body = node.node.getChild("Body");
533
+ if (body)
534
+ options.push(...getScope(doc, body));
535
+ }
536
+ return false;
537
+ },
538
+ });
539
+ if (!options.length)
540
+ return null;
541
+ return { options, from: match.from + owner.length + 1, validFor: /^\w*$/ };
542
+ }
543
+
544
+ // The indentation logic follows @codemirror/lang-python (MIT), because
545
+ // GDScript blocks work the same way as Python's.
546
+ const blockNodes = new Set(["Body", "MatchBody", "LambdaBody", "PropertyBody"]);
547
+ function innerBody(context) {
548
+ let { node, pos } = context;
549
+ let lineIndent = context.lineIndent(pos, -1);
550
+ let found = null;
551
+ for (;;) {
552
+ let before = node.childBefore(pos);
553
+ if (!before) {
554
+ break;
555
+ }
556
+ else if (before.name == "Comment") {
557
+ pos = before.from;
558
+ }
559
+ else if (blockNodes.has(before.name)) {
560
+ if (context.baseIndentFor(before) + context.unit <= lineIndent)
561
+ found = before;
562
+ node = before;
563
+ }
564
+ else if (before.name == "MatchClause" || before.type.is("Statement") || before.type.is("Expression")) {
565
+ node = before;
566
+ }
567
+ else if (/Statement|Declaration|Definition$|Setter|Getter|LambdaExpression/.test(before.name)) {
568
+ node = before;
569
+ }
570
+ else {
571
+ break;
572
+ }
573
+ }
574
+ return found;
575
+ }
576
+ function indentBody(context, node) {
577
+ let base = context.baseIndentFor(node);
578
+ let line = context.lineAt(context.pos, -1), to = line.from + line.text.length;
579
+ // Blank lines that are dedented at the end of a block belong to the level outside it.
580
+ if (/^\s*($|#)/.test(line.text) &&
581
+ context.node.to < to + 100 &&
582
+ !/\S/.test(context.state.sliceDoc(to, context.node.to)) &&
583
+ context.lineIndent(context.pos, -1) <= base)
584
+ return null;
585
+ // An `else:` or `elif` indented further than this block belongs to an inner block.
586
+ if (/^\s*(else:|elif )/.test(context.textAfter) && context.lineIndent(context.pos, -1) > base)
587
+ return null;
588
+ return base + context.unit;
589
+ }
590
+ function blockIndent(context) {
591
+ var _a;
592
+ let body = (/^\s*(#|$)/.test(context.textAfter) && innerBody(context)) || context.node;
593
+ return (_a = indentBody(context, body)) !== null && _a !== void 0 ? _a : context.continue();
594
+ }
595
+ const gdscriptLanguage = language.LRLanguage.define({
596
+ name: "gdscript",
597
+ parser: parser.configure({
598
+ props: [
599
+ language.indentNodeProp.add({
600
+ "Body LambdaBody PropertyBody": blockIndent,
601
+ MatchBody: (context) => { var _a; return (_a = indentBody(context, innerBody(context) || context.node)) !== null && _a !== void 0 ? _a : context.continue(); },
602
+ IfStatement: (cx) => (/^\s*(else:|elif )/.test(cx.textAfter) ? cx.baseIndent : cx.continue()),
603
+ "ParamList ArgList ParenthesizedExpression": language.delimitedIndent({ closing: ")" }),
604
+ "DictionaryExpression EnumBody DictionaryPattern": language.delimitedIndent({ closing: "}" }),
605
+ "ArrayExpression ArrayPattern Subscript TypeArgs": language.delimitedIndent({ closing: "]" }),
606
+ MemberExpression: (cx) => cx.baseIndent + cx.unit,
607
+ String: () => null,
608
+ Script: (context) => {
609
+ var _a;
610
+ let inner = innerBody(context);
611
+ return (_a = (inner && indentBody(context, inner))) !== null && _a !== void 0 ? _a : context.continue();
612
+ },
613
+ }),
614
+ language.foldNodeProp.add({
615
+ "ArrayExpression DictionaryExpression EnumBody": language.foldInside,
616
+ "Body MatchBody LambdaBody PropertyBody": (node, state) => ({
617
+ from: node.from + 1,
618
+ to: node.to - (node.to == state.doc.length ? 0 : 1),
619
+ }),
620
+ String: (node, state) => ({ from: state.doc.lineAt(node.from).to, to: node.to }),
621
+ }),
622
+ highlight.styleTags({
623
+ "if elif else for while match break continue pass return when": highlight.tags.controlKeyword,
624
+ "in not and or is as await": highlight.tags.operatorKeyword,
625
+ "var const func class class_name extends signal enum static set get": highlight.tags.definitionKeyword,
626
+ breakpoint: highlight.tags.keyword,
627
+ "self super": highlight.tags.self,
628
+ Boolean: highlight.tags.bool,
629
+ null: highlight.tags.null,
630
+ Constant: highlight.tags.constant(highlight.tags.variableName),
631
+ Number: highlight.tags.number,
632
+ String: highlight.tags.string,
633
+ Escape: highlight.tags.escape,
634
+ "StringName/& NodePath/^": highlight.tags.special(highlight.tags.string),
635
+ GetNode: highlight.tags.special(highlight.tags.variableName),
636
+ Comment: highlight.tags.lineComment,
637
+ VariableName: highlight.tags.variableName,
638
+ VariableDefinition: highlight.tags.definition(highlight.tags.variableName),
639
+ "FunctionDefinition/VariableDefinition": highlight.tags.function(highlight.tags.definition(highlight.tags.variableName)),
640
+ "ClassDefinition/VariableDefinition ClassNameStatement/VariableDefinition EnumDefinition/VariableDefinition": highlight.tags.definition(highlight.tags.className),
641
+ "CallExpression/VariableName": highlight.tags.function(highlight.tags.variableName),
642
+ PropertyName: highlight.tags.propertyName,
643
+ "CallExpression/MemberExpression/PropertyName": highlight.tags.function(highlight.tags.propertyName),
644
+ TypeName: highlight.tags.typeName,
645
+ "Annotation/At AnnotationName": highlight.tags.meta,
646
+ ArithOp: highlight.tags.arithmeticOperator,
647
+ BitOp: highlight.tags.bitwiseOperator,
648
+ LogicOp: highlight.tags.logicOperator,
649
+ CompareOp: highlight.tags.compareOperator,
650
+ "AssignOp UpdateOp": highlight.tags.definitionOperator,
651
+ "( )": highlight.tags.paren,
652
+ "[ ]": highlight.tags.squareBracket,
653
+ "{ }": highlight.tags.brace,
654
+ ".": highlight.tags.derefOperator,
655
+ ", ;": highlight.tags.separator,
656
+ }),
657
+ ],
658
+ }),
659
+ languageData: {
660
+ closeBrackets: { brackets: ["(", "[", "{", "'", '"'] },
661
+ commentTokens: { line: "#" },
662
+ indentOnInput: /^\s*([\}\]\)]|else:|elif )$/,
663
+ },
664
+ });
665
+ function gdscript() {
666
+ return new language.LanguageSupport(gdscriptLanguage, [
667
+ gdscriptLanguage.data.of({ autocomplete: localCompletionSource }),
668
+ gdscriptLanguage.data.of({ autocomplete: annotationCompletion }),
669
+ gdscriptLanguage.data.of({ autocomplete: globalCompletion }),
670
+ ]);
671
+ }
672
+
673
+ exports.annotationCompletion = annotationCompletion;
674
+ exports.gdscript = gdscript;
675
+ exports.gdscriptLanguage = gdscriptLanguage;
676
+ exports.globalCompletion = globalCompletion;
677
+ exports.localCompletionSource = localCompletionSource;
678
+ exports.parser = parser;
679
+ exports.snippets = snippets;