@exercism/codemirror-lang-purescript 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,19 @@
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 PureScript.
5
+ declare const snippets: readonly Completion[];
6
+ /// Completes the names declared in the file that are in scope at the cursor:
7
+ /// top-level functions, types and constructors, parameters, pattern
8
+ /// variables, and the bindings of `let`, `where`, `do` and `ado`.
9
+ declare const localCompletionSource: CompletionSource;
10
+ /// Completes a field name after `record.`, from the record fields declared
11
+ /// and written in the file.
12
+ declare const fieldCompletionSource: CompletionSource;
13
+ /// Keywords, snippets, and the functions, types and constructors from Prelude
14
+ /// and the most common modules. It offers nothing in strings and comments, or
15
+ /// after a dot.
16
+ declare const purescriptCompletion: CompletionSource;
17
+ declare const purescriptLanguage: LRLanguage;
18
+ declare function purescript(): LanguageSupport;
19
+ export { purescriptLanguage, purescript, parser, localCompletionSource, fieldCompletionSource, purescriptCompletion, snippets };
@@ -0,0 +1,19 @@
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 PureScript.
5
+ declare const snippets: readonly Completion[];
6
+ /// Completes the names declared in the file that are in scope at the cursor:
7
+ /// top-level functions, types and constructors, parameters, pattern
8
+ /// variables, and the bindings of `let`, `where`, `do` and `ado`.
9
+ declare const localCompletionSource: CompletionSource;
10
+ /// Completes a field name after `record.`, from the record fields declared
11
+ /// and written in the file.
12
+ declare const fieldCompletionSource: CompletionSource;
13
+ /// Keywords, snippets, and the functions, types and constructors from Prelude
14
+ /// and the most common modules. It offers nothing in strings and comments, or
15
+ /// after a dot.
16
+ declare const purescriptCompletion: CompletionSource;
17
+ declare const purescriptLanguage: LRLanguage;
18
+ declare function purescript(): LanguageSupport;
19
+ export { purescriptLanguage, purescript, parser, localCompletionSource, fieldCompletionSource, purescriptCompletion, snippets };