@exercism/codemirror-lang-d 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.
@@ -0,0 +1,23 @@
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 D.
5
+ declare const snippets: readonly Completion[];
6
+ /// Keywords, snippets, the built-in types and the common Phobos functions. It
7
+ /// offers nothing inside strings and comments, after a dot, or in an import.
8
+ declare const dCompletion: CompletionSource;
9
+ /// Module names in an `import`, and after `import std.algorithm :` the names
10
+ /// that module offers.
11
+ declare const importCompletionSource: CompletionSource;
12
+ /// After a dot: the properties every value has, the Phobos functions (which
13
+ /// uniform call syntax lets a value call as `xs.sort`), and the members and
14
+ /// functions declared in the file.
15
+ declare const memberCompletionSource: CompletionSource;
16
+ /// Completes the names declared in the file that are in scope at the cursor:
17
+ /// top-level declarations, class and struct members inside their bodies,
18
+ /// parameters, template parameters, loop variables, and the local variables
19
+ /// declared above the cursor.
20
+ declare const localCompletionSource: CompletionSource;
21
+ declare const dLanguage: LRLanguage;
22
+ declare function d(): LanguageSupport;
23
+ export { dLanguage, d, parser, snippets, dCompletion, localCompletionSource, memberCompletionSource, importCompletionSource };
@@ -0,0 +1,23 @@
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 D.
5
+ declare const snippets: readonly Completion[];
6
+ /// Keywords, snippets, the built-in types and the common Phobos functions. It
7
+ /// offers nothing inside strings and comments, after a dot, or in an import.
8
+ declare const dCompletion: CompletionSource;
9
+ /// Module names in an `import`, and after `import std.algorithm :` the names
10
+ /// that module offers.
11
+ declare const importCompletionSource: CompletionSource;
12
+ /// After a dot: the properties every value has, the Phobos functions (which
13
+ /// uniform call syntax lets a value call as `xs.sort`), and the members and
14
+ /// functions declared in the file.
15
+ declare const memberCompletionSource: CompletionSource;
16
+ /// Completes the names declared in the file that are in scope at the cursor:
17
+ /// top-level declarations, class and struct members inside their bodies,
18
+ /// parameters, template parameters, loop variables, and the local variables
19
+ /// declared above the cursor.
20
+ declare const localCompletionSource: CompletionSource;
21
+ declare const dLanguage: LRLanguage;
22
+ declare function d(): LanguageSupport;
23
+ export { dLanguage, d, parser, snippets, dCompletion, localCompletionSource, memberCompletionSource, importCompletionSource };