@exercism/codemirror-lang-rescript 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,27 @@
1
+ import {LRParser} from "@lezer/lr"
2
+ import {NodePropSource} from "@lezer/common"
3
+ import {LRLanguage, LanguageSupport} from "@codemirror/language"
4
+ import {Completion, CompletionSource} from "@codemirror/autocomplete"
5
+
6
+ export const parser: LRParser
7
+ export const rescriptHighlight: NodePropSource
8
+
9
+ /// The ReScript language, with highlighting, indentation and folding.
10
+ export const rescriptLanguage: LRLanguage
11
+ /// ReScript support: the language plus completion.
12
+ export function rescript(): LanguageSupport
13
+
14
+ /// Completes the names defined in the file, where they are in scope.
15
+ export const localCompletionSource: CompletionSource
16
+ /// Completes the values and modules after a module name and a dot, such as `Array.`.
17
+ export const memberCompletionSource: CompletionSource
18
+ /// Completes keywords, global functions, standard library modules and snippets.
19
+ export const builtinCompletionSource: CompletionSource
20
+
21
+ export const keywords: readonly string[]
22
+ export const globals: readonly [string, string][]
23
+ export const constructors: readonly string[]
24
+ export const builtinTypes: readonly string[]
25
+ export const snippets: readonly Completion[]
26
+ /// The standard library's modules, each with its values as [name, type] pairs.
27
+ export const moduleValues: {readonly [module: string]: readonly [string, string][]}
@@ -0,0 +1,27 @@
1
+ import {LRParser} from "@lezer/lr"
2
+ import {NodePropSource} from "@lezer/common"
3
+ import {LRLanguage, LanguageSupport} from "@codemirror/language"
4
+ import {Completion, CompletionSource} from "@codemirror/autocomplete"
5
+
6
+ export const parser: LRParser
7
+ export const rescriptHighlight: NodePropSource
8
+
9
+ /// The ReScript language, with highlighting, indentation and folding.
10
+ export const rescriptLanguage: LRLanguage
11
+ /// ReScript support: the language plus completion.
12
+ export function rescript(): LanguageSupport
13
+
14
+ /// Completes the names defined in the file, where they are in scope.
15
+ export const localCompletionSource: CompletionSource
16
+ /// Completes the values and modules after a module name and a dot, such as `Array.`.
17
+ export const memberCompletionSource: CompletionSource
18
+ /// Completes keywords, global functions, standard library modules and snippets.
19
+ export const builtinCompletionSource: CompletionSource
20
+
21
+ export const keywords: readonly string[]
22
+ export const globals: readonly [string, string][]
23
+ export const constructors: readonly string[]
24
+ export const builtinTypes: readonly string[]
25
+ export const snippets: readonly Completion[]
26
+ /// The standard library's modules, each with its values as [name, type] pairs.
27
+ export const moduleValues: {readonly [module: string]: readonly [string, string][]}