@exercism/codemirror-lang-cairo 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 +22 -0
- package/README.md +102 -2
- package/dist/index.cjs +909 -0
- package/dist/index.d.cts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +902 -0
- package/package.json +51 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { parser } from "./syntax.grammar";
|
|
2
|
+
import { LRLanguage, LanguageSupport } from "@codemirror/language";
|
|
3
|
+
import { Completion, CompletionSource } from "@codemirror/autocomplete";
|
|
4
|
+
declare const cairoLanguage: LRLanguage;
|
|
5
|
+
declare function cairo(): LanguageSupport;
|
|
6
|
+
/// Snippets for Cairo's common constructs.
|
|
7
|
+
declare const snippets: readonly Completion[];
|
|
8
|
+
/// Completion source that looks up names declared in Cairo code. It offers
|
|
9
|
+
/// names in scope at the cursor, fields and methods after `.`, and variants
|
|
10
|
+
/// and functions after `Name::`. After a core library path such as
|
|
11
|
+
/// `core::array::` or a trait such as `ArrayTrait::`, it offers that path's
|
|
12
|
+
/// items.
|
|
13
|
+
declare const localCompletionSource: CompletionSource;
|
|
14
|
+
/// Completion source for Cairo's keywords, prelude names, built-in macros and
|
|
15
|
+
/// snippets. It stays quiet inside strings and comments, after `.` and in
|
|
16
|
+
/// `::` paths.
|
|
17
|
+
declare const keywordCompletionSource: CompletionSource;
|
|
18
|
+
export { cairoLanguage, cairo, parser, snippets, localCompletionSource, keywordCompletionSource };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { parser } from "./syntax.grammar";
|
|
2
|
+
import { LRLanguage, LanguageSupport } from "@codemirror/language";
|
|
3
|
+
import { Completion, CompletionSource } from "@codemirror/autocomplete";
|
|
4
|
+
declare const cairoLanguage: LRLanguage;
|
|
5
|
+
declare function cairo(): LanguageSupport;
|
|
6
|
+
/// Snippets for Cairo's common constructs.
|
|
7
|
+
declare const snippets: readonly Completion[];
|
|
8
|
+
/// Completion source that looks up names declared in Cairo code. It offers
|
|
9
|
+
/// names in scope at the cursor, fields and methods after `.`, and variants
|
|
10
|
+
/// and functions after `Name::`. After a core library path such as
|
|
11
|
+
/// `core::array::` or a trait such as `ArrayTrait::`, it offers that path's
|
|
12
|
+
/// items.
|
|
13
|
+
declare const localCompletionSource: CompletionSource;
|
|
14
|
+
/// Completion source for Cairo's keywords, prelude names, built-in macros and
|
|
15
|
+
/// snippets. It stays quiet inside strings and comments, after `.` and in
|
|
16
|
+
/// `::` paths.
|
|
17
|
+
declare const keywordCompletionSource: CompletionSource;
|
|
18
|
+
export { cairoLanguage, cairo, parser, snippets, localCompletionSource, keywordCompletionSource };
|