@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.
@@ -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 };
@@ -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 };