@exercism/codemirror-lang-elm 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/LICENSE +21 -0
- package/README.md +98 -2
- package/dist/index.cjs +839 -0
- package/dist/index.d.cts +25 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +829 -0
- package/package.json +51 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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 Elm.
|
|
5
|
+
declare const snippets: readonly Completion[];
|
|
6
|
+
/// Keywords, snippets, the names Elm imports into every module, and the module
|
|
7
|
+
/// names. It offers nothing inside strings and comments, or after a dot.
|
|
8
|
+
declare const elmCompletion: CompletionSource;
|
|
9
|
+
/// The members of a module after its name and a dot: `List.` offers `map` and
|
|
10
|
+
/// `foldl`, and after `import Dict as D`, `D.` offers what `Dict.` does.
|
|
11
|
+
declare const moduleCompletionSource: CompletionSource;
|
|
12
|
+
/// The names an import brings in without a prefix: those in its `exposing`
|
|
13
|
+
/// list, or every member for `exposing (..)`.
|
|
14
|
+
declare const importedCompletionSource: CompletionSource;
|
|
15
|
+
// ── Fields ────────────────────────────────────────────────────────────────────
|
|
16
|
+
/// The field names written in the file, after a record and a dot, as in
|
|
17
|
+
/// `model.` or `.` at the start of an accessor function.
|
|
18
|
+
declare const fieldCompletionSource: CompletionSource;
|
|
19
|
+
/// Completes the names declared in the file that are in scope at the cursor:
|
|
20
|
+
/// top-level functions, types and constructors, parameters, and the names bound
|
|
21
|
+
/// by `let`, `case` and lambdas.
|
|
22
|
+
declare const localCompletionSource: CompletionSource;
|
|
23
|
+
declare const elmLanguage: LRLanguage;
|
|
24
|
+
declare function elm(): LanguageSupport;
|
|
25
|
+
export { elmLanguage, elm, parser, snippets, elmCompletion, moduleCompletionSource, importedCompletionSource, fieldCompletionSource, localCompletionSource };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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 Elm.
|
|
5
|
+
declare const snippets: readonly Completion[];
|
|
6
|
+
/// Keywords, snippets, the names Elm imports into every module, and the module
|
|
7
|
+
/// names. It offers nothing inside strings and comments, or after a dot.
|
|
8
|
+
declare const elmCompletion: CompletionSource;
|
|
9
|
+
/// The members of a module after its name and a dot: `List.` offers `map` and
|
|
10
|
+
/// `foldl`, and after `import Dict as D`, `D.` offers what `Dict.` does.
|
|
11
|
+
declare const moduleCompletionSource: CompletionSource;
|
|
12
|
+
/// The names an import brings in without a prefix: those in its `exposing`
|
|
13
|
+
/// list, or every member for `exposing (..)`.
|
|
14
|
+
declare const importedCompletionSource: CompletionSource;
|
|
15
|
+
// ── Fields ────────────────────────────────────────────────────────────────────
|
|
16
|
+
/// The field names written in the file, after a record and a dot, as in
|
|
17
|
+
/// `model.` or `.` at the start of an accessor function.
|
|
18
|
+
declare const fieldCompletionSource: CompletionSource;
|
|
19
|
+
/// Completes the names declared in the file that are in scope at the cursor:
|
|
20
|
+
/// top-level functions, types and constructors, parameters, and the names bound
|
|
21
|
+
/// by `let`, `case` and lambdas.
|
|
22
|
+
declare const localCompletionSource: CompletionSource;
|
|
23
|
+
declare const elmLanguage: LRLanguage;
|
|
24
|
+
declare function elm(): LanguageSupport;
|
|
25
|
+
export { elmLanguage, elm, parser, snippets, elmCompletion, moduleCompletionSource, importedCompletionSource, fieldCompletionSource, localCompletionSource };
|