@exercism/codemirror-lang-idris 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 +98 -2
- package/dist/index.cjs +1039 -0
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +1032 -0
- package/package.json +51 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { parser } from "./syntax.grammar";
|
|
2
|
+
import { LRLanguage, LanguageSupport } from "@codemirror/language";
|
|
3
|
+
// The scoped completion is adapted from the Haskell grammar by CodinCod
|
|
4
|
+
// (https://codeberg.org/reeven/codemirror-lang-haskell, MIT), which follows
|
|
5
|
+
// `@codemirror/lang-go`'s `localCompletionSource`.
|
|
6
|
+
import { Completion, CompletionSource } from "@codemirror/autocomplete";
|
|
7
|
+
/// Snippets for the constructs people write most often in Idris.
|
|
8
|
+
declare const snippets: readonly Completion[];
|
|
9
|
+
/// Completion for Idris's keywords, the snippets, and the Prelude and base
|
|
10
|
+
/// names. It offers nothing inside strings and comments.
|
|
11
|
+
declare const idrisCompletion: CompletionSource;
|
|
12
|
+
/// Completes the names declared in the file that are in scope at the cursor:
|
|
13
|
+
/// top-level functions, types, constructors and interfaces, parameters, pattern
|
|
14
|
+
/// variables, and the bindings of `let`, `where` and `do`. After a `.` that
|
|
15
|
+
/// reads a field, it offers the file's record fields.
|
|
16
|
+
declare const localCompletionSource: CompletionSource;
|
|
17
|
+
declare const idrisLanguage: LRLanguage;
|
|
18
|
+
declare function idris(): LanguageSupport;
|
|
19
|
+
export { idrisLanguage, idris, parser, idrisCompletion, localCompletionSource, snippets };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { parser } from "./syntax.grammar";
|
|
2
|
+
import { LRLanguage, LanguageSupport } from "@codemirror/language";
|
|
3
|
+
// The scoped completion is adapted from the Haskell grammar by CodinCod
|
|
4
|
+
// (https://codeberg.org/reeven/codemirror-lang-haskell, MIT), which follows
|
|
5
|
+
// `@codemirror/lang-go`'s `localCompletionSource`.
|
|
6
|
+
import { Completion, CompletionSource } from "@codemirror/autocomplete";
|
|
7
|
+
/// Snippets for the constructs people write most often in Idris.
|
|
8
|
+
declare const snippets: readonly Completion[];
|
|
9
|
+
/// Completion for Idris's keywords, the snippets, and the Prelude and base
|
|
10
|
+
/// names. It offers nothing inside strings and comments.
|
|
11
|
+
declare const idrisCompletion: CompletionSource;
|
|
12
|
+
/// Completes the names declared in the file that are in scope at the cursor:
|
|
13
|
+
/// top-level functions, types, constructors and interfaces, parameters, pattern
|
|
14
|
+
/// variables, and the bindings of `let`, `where` and `do`. After a `.` that
|
|
15
|
+
/// reads a field, it offers the file's record fields.
|
|
16
|
+
declare const localCompletionSource: CompletionSource;
|
|
17
|
+
declare const idrisLanguage: LRLanguage;
|
|
18
|
+
declare function idris(): LanguageSupport;
|
|
19
|
+
export { idrisLanguage, idris, parser, idrisCompletion, localCompletionSource, snippets };
|