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

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,20 @@
1
+ import { parser } from "./syntax.grammar";
2
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
3
+ // Completion for GDScript. The scope walk follows @codemirror/lang-python's
4
+ // localCompletionSource (MIT).
5
+ import { Completion, CompletionContext, CompletionResult, CompletionSource } from "@codemirror/autocomplete";
6
+ /// Snippets for the constructs people write most often in GDScript.
7
+ declare const snippets: readonly Completion[];
8
+ /// Keywords, snippets, constants, built-in functions and types. In a type
9
+ /// annotation, it offers only types.
10
+ declare const globalCompletion: CompletionSource;
11
+ /// Offers the annotations after `@`.
12
+ declare const annotationCompletion: CompletionSource;
13
+ /// Offers the names declared in the file that are in scope at the cursor:
14
+ /// functions, classes, variables, constants, signals, enums, parameters,
15
+ /// loop variables and match bindings. After `Name.`, it offers the members of
16
+ /// an enum or inner class called `Name`.
17
+ declare function localCompletionSource(context: CompletionContext): CompletionResult | null;
18
+ declare const gdscriptLanguage: LRLanguage;
19
+ declare function gdscript(): LanguageSupport;
20
+ export { globalCompletion, localCompletionSource, annotationCompletion, snippets, parser, gdscriptLanguage, gdscript };
@@ -0,0 +1,20 @@
1
+ import { parser } from "./syntax.grammar";
2
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
3
+ // Completion for GDScript. The scope walk follows @codemirror/lang-python's
4
+ // localCompletionSource (MIT).
5
+ import { Completion, CompletionContext, CompletionResult, CompletionSource } from "@codemirror/autocomplete";
6
+ /// Snippets for the constructs people write most often in GDScript.
7
+ declare const snippets: readonly Completion[];
8
+ /// Keywords, snippets, constants, built-in functions and types. In a type
9
+ /// annotation, it offers only types.
10
+ declare const globalCompletion: CompletionSource;
11
+ /// Offers the annotations after `@`.
12
+ declare const annotationCompletion: CompletionSource;
13
+ /// Offers the names declared in the file that are in scope at the cursor:
14
+ /// functions, classes, variables, constants, signals, enums, parameters,
15
+ /// loop variables and match bindings. After `Name.`, it offers the members of
16
+ /// an enum or inner class called `Name`.
17
+ declare function localCompletionSource(context: CompletionContext): CompletionResult | null;
18
+ declare const gdscriptLanguage: LRLanguage;
19
+ declare function gdscript(): LanguageSupport;
20
+ export { globalCompletion, localCompletionSource, annotationCompletion, snippets, parser, gdscriptLanguage, gdscript };