@exercism/codemirror-lang-roc 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 +100 -2
- package/dist/index.cjs +556 -0
- package/dist/index.d.cts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +547 -0
- package/package.json +51 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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 Roc.
|
|
5
|
+
declare const snippets: readonly Completion[];
|
|
6
|
+
/// Keywords, snippets and the builtin types and tags. It offers nothing inside
|
|
7
|
+
/// strings and comments, or after a dot.
|
|
8
|
+
declare const rocCompletion: CompletionSource;
|
|
9
|
+
// ── Modules and methods ───────────────────────────────────────────────────────
|
|
10
|
+
/// The members of a builtin module after its name and a dot: `List.` offers
|
|
11
|
+
/// `map` and `walk`, and `Str.` offers `split_on`.
|
|
12
|
+
declare const moduleCompletionSource: CompletionSource;
|
|
13
|
+
/// After a value and a dot, as in `model.` or `"text".`: the field names
|
|
14
|
+
/// written in the file, then the builtin functions that can be called as
|
|
15
|
+
/// methods.
|
|
16
|
+
declare const fieldCompletionSource: CompletionSource;
|
|
17
|
+
/// Completes the names declared in the file that are in scope at the cursor:
|
|
18
|
+
/// functions and values, types and their tags, imports, parameters, and the
|
|
19
|
+
/// names bound by `match`, `for` and `var`.
|
|
20
|
+
declare const localCompletionSource: CompletionSource;
|
|
21
|
+
declare const rocLanguage: LRLanguage;
|
|
22
|
+
declare function roc(): LanguageSupport;
|
|
23
|
+
export { rocLanguage, roc, parser, snippets, rocCompletion, moduleCompletionSource, fieldCompletionSource, localCompletionSource };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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 Roc.
|
|
5
|
+
declare const snippets: readonly Completion[];
|
|
6
|
+
/// Keywords, snippets and the builtin types and tags. It offers nothing inside
|
|
7
|
+
/// strings and comments, or after a dot.
|
|
8
|
+
declare const rocCompletion: CompletionSource;
|
|
9
|
+
// ── Modules and methods ───────────────────────────────────────────────────────
|
|
10
|
+
/// The members of a builtin module after its name and a dot: `List.` offers
|
|
11
|
+
/// `map` and `walk`, and `Str.` offers `split_on`.
|
|
12
|
+
declare const moduleCompletionSource: CompletionSource;
|
|
13
|
+
/// After a value and a dot, as in `model.` or `"text".`: the field names
|
|
14
|
+
/// written in the file, then the builtin functions that can be called as
|
|
15
|
+
/// methods.
|
|
16
|
+
declare const fieldCompletionSource: CompletionSource;
|
|
17
|
+
/// Completes the names declared in the file that are in scope at the cursor:
|
|
18
|
+
/// functions and values, types and their tags, imports, parameters, and the
|
|
19
|
+
/// names bound by `match`, `for` and `var`.
|
|
20
|
+
declare const localCompletionSource: CompletionSource;
|
|
21
|
+
declare const rocLanguage: LRLanguage;
|
|
22
|
+
declare function roc(): LanguageSupport;
|
|
23
|
+
export { rocLanguage, roc, parser, snippets, rocCompletion, moduleCompletionSource, fieldCompletionSource, localCompletionSource };
|