@exercism/codemirror-lang-cobol 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,21 @@
1
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
2
+ import { Completion, CompletionSource } from "@codemirror/autocomplete";
3
+ /// The verbs that start a statement, such as `MOVE` and `PERFORM`.
4
+ declare const verbs: readonly string[];
5
+ /// The other reserved words, such as `TO`, `GIVING` and `END-IF`.
6
+ declare const keywords: readonly string[];
7
+ /// The figurative constants, such as `ZERO` and `SPACES`.
8
+ declare const constants: readonly string[];
9
+ /// The intrinsic functions, called as `FUNCTION name(args)`.
10
+ declare const functions: readonly string[];
11
+ /// Snippets for the four divisions, data items, loops, IF and EVALUATE.
12
+ declare const snippets: readonly Completion[];
13
+ /// Completes verbs, keywords, figurative constants, intrinsic functions
14
+ /// and snippets, everywhere except in strings, pictures and comments.
15
+ declare const keywordCompletionSource: CompletionSource;
16
+ /// Completes the names declared in the current program: data items,
17
+ /// condition names, indexes, files, paragraphs and sections.
18
+ declare const localCompletionSource: CompletionSource;
19
+ declare const cobolLanguage: LRLanguage;
20
+ declare function cobol(): LanguageSupport;
21
+ export { keywordCompletionSource, localCompletionSource, snippets, verbs, keywords, constants, functions, cobolLanguage, cobol };
@@ -0,0 +1,21 @@
1
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
2
+ import { Completion, CompletionSource } from "@codemirror/autocomplete";
3
+ /// The verbs that start a statement, such as `MOVE` and `PERFORM`.
4
+ declare const verbs: readonly string[];
5
+ /// The other reserved words, such as `TO`, `GIVING` and `END-IF`.
6
+ declare const keywords: readonly string[];
7
+ /// The figurative constants, such as `ZERO` and `SPACES`.
8
+ declare const constants: readonly string[];
9
+ /// The intrinsic functions, called as `FUNCTION name(args)`.
10
+ declare const functions: readonly string[];
11
+ /// Snippets for the four divisions, data items, loops, IF and EVALUATE.
12
+ declare const snippets: readonly Completion[];
13
+ /// Completes verbs, keywords, figurative constants, intrinsic functions
14
+ /// and snippets, everywhere except in strings, pictures and comments.
15
+ declare const keywordCompletionSource: CompletionSource;
16
+ /// Completes the names declared in the current program: data items,
17
+ /// condition names, indexes, files, paragraphs and sections.
18
+ declare const localCompletionSource: CompletionSource;
19
+ declare const cobolLanguage: LRLanguage;
20
+ declare function cobol(): LanguageSupport;
21
+ export { keywordCompletionSource, localCompletionSource, snippets, verbs, keywords, constants, functions, cobolLanguage, cobol };