@exercism/codemirror-lang-unison 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.
@@ -0,0 +1,20 @@
1
+ import { parser } from "./syntax.grammar";
2
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
3
+ import { Completion, CompletionSource } from "@codemirror/autocomplete";
4
+ /// Snippets for the constructs people write most often in Unison.
5
+ declare const snippets: readonly Completion[];
6
+ /// Completes the names declared in the file that are in scope at the cursor:
7
+ /// top-level definitions, types, constructors and ability operations,
8
+ /// parameters, pattern variables, lambda arguments, and the bindings of the
9
+ /// blocks around the cursor.
10
+ declare const localCompletionSource: CompletionSource;
11
+ /// Completes a name after a namespace and a dot, as in `List.` or `Nat.`. It
12
+ /// offers the common members of the base namespaces, and the names the file
13
+ /// declares in that namespace, such as `isSuperlist` after `sublist.`.
14
+ declare const namespaceCompletionSource: CompletionSource;
15
+ /// Keywords, snippets, and the common functions, types and constructors from
16
+ /// base. It offers nothing in texts and comments, or after a dot.
17
+ declare const unisonCompletion: CompletionSource;
18
+ declare const unisonLanguage: LRLanguage;
19
+ declare function unison(): LanguageSupport;
20
+ export { unisonLanguage, unison, parser, localCompletionSource, namespaceCompletionSource, unisonCompletion, snippets };
@@ -0,0 +1,20 @@
1
+ import { parser } from "./syntax.grammar";
2
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
3
+ import { Completion, CompletionSource } from "@codemirror/autocomplete";
4
+ /// Snippets for the constructs people write most often in Unison.
5
+ declare const snippets: readonly Completion[];
6
+ /// Completes the names declared in the file that are in scope at the cursor:
7
+ /// top-level definitions, types, constructors and ability operations,
8
+ /// parameters, pattern variables, lambda arguments, and the bindings of the
9
+ /// blocks around the cursor.
10
+ declare const localCompletionSource: CompletionSource;
11
+ /// Completes a name after a namespace and a dot, as in `List.` or `Nat.`. It
12
+ /// offers the common members of the base namespaces, and the names the file
13
+ /// declares in that namespace, such as `isSuperlist` after `sublist.`.
14
+ declare const namespaceCompletionSource: CompletionSource;
15
+ /// Keywords, snippets, and the common functions, types and constructors from
16
+ /// base. It offers nothing in texts and comments, or after a dot.
17
+ declare const unisonCompletion: CompletionSource;
18
+ declare const unisonLanguage: LRLanguage;
19
+ declare function unison(): LanguageSupport;
20
+ export { unisonLanguage, unison, parser, localCompletionSource, namespaceCompletionSource, unisonCompletion, snippets };