@exercism/codemirror-lang-reasonml 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.
- package/LICENSE +21 -0
- package/README.md +100 -2
- package/dist/index.cjs +514 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +506 -0
- package/package.json +51 -4
package/dist/index.d.cts
ADDED
|
@@ -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 ReasonML.
|
|
5
|
+
declare const snippets: readonly Completion[];
|
|
6
|
+
/// Completes keywords, snippets, the built-in values, types and constructors,
|
|
7
|
+
/// and the standard modules. After a dot, only a module's members fit, so it
|
|
8
|
+
/// offers nothing there.
|
|
9
|
+
declare const reasonCompletion: CompletionSource;
|
|
10
|
+
/// Completes the names declared in the file that are in scope at the cursor:
|
|
11
|
+
/// values, functions, types, constructors, record fields and modules declared
|
|
12
|
+
/// before it, and the parameters and pattern variables around it.
|
|
13
|
+
declare const localCompletionSource: CompletionSource;
|
|
14
|
+
/// Completes the members of a module after its name and a dot, such as
|
|
15
|
+
/// `List.map` or `Js.String.split`, for the standard modules and the modules
|
|
16
|
+
/// declared in the file.
|
|
17
|
+
declare const moduleCompletionSource: CompletionSource;
|
|
18
|
+
declare const reasonmlLanguage: LRLanguage;
|
|
19
|
+
declare function reasonml(): LanguageSupport;
|
|
20
|
+
export { reasonmlLanguage, reasonml, parser, snippets, reasonCompletion, moduleCompletionSource, localCompletionSource };
|
package/dist/index.d.ts
ADDED
|
@@ -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 ReasonML.
|
|
5
|
+
declare const snippets: readonly Completion[];
|
|
6
|
+
/// Completes keywords, snippets, the built-in values, types and constructors,
|
|
7
|
+
/// and the standard modules. After a dot, only a module's members fit, so it
|
|
8
|
+
/// offers nothing there.
|
|
9
|
+
declare const reasonCompletion: CompletionSource;
|
|
10
|
+
/// Completes the names declared in the file that are in scope at the cursor:
|
|
11
|
+
/// values, functions, types, constructors, record fields and modules declared
|
|
12
|
+
/// before it, and the parameters and pattern variables around it.
|
|
13
|
+
declare const localCompletionSource: CompletionSource;
|
|
14
|
+
/// Completes the members of a module after its name and a dot, such as
|
|
15
|
+
/// `List.map` or `Js.String.split`, for the standard modules and the modules
|
|
16
|
+
/// declared in the file.
|
|
17
|
+
declare const moduleCompletionSource: CompletionSource;
|
|
18
|
+
declare const reasonmlLanguage: LRLanguage;
|
|
19
|
+
declare function reasonml(): LanguageSupport;
|
|
20
|
+
export { reasonmlLanguage, reasonml, parser, snippets, reasonCompletion, moduleCompletionSource, localCompletionSource };
|