@exercism/codemirror-lang-swift 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/CHANGELOG.md +85 -0
- package/LICENSE +21 -0
- package/README.md +171 -2
- package/dist/index.cjs +1080 -0
- package/dist/index.d.cts +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +1073 -0
- package/package.json +54 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LRParser } from '@lezer/lr';
|
|
2
|
+
import { LanguageSupport, LRLanguage } from '@codemirror/language';
|
|
3
|
+
import { CompletionSource, Completion } from '@codemirror/autocomplete';
|
|
4
|
+
|
|
5
|
+
declare const parser: LRParser
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
Snippets for the constructs a Swift file is built from.
|
|
9
|
+
*/
|
|
10
|
+
declare const snippets: readonly Completion[];
|
|
11
|
+
/**
|
|
12
|
+
Keywords, snippets, and the standard library names in the lists above.
|
|
13
|
+
*/
|
|
14
|
+
declare const swiftCompletion: CompletionSource;
|
|
15
|
+
/**
|
|
16
|
+
Completes the names declared in the file that are in scope at the cursor:
|
|
17
|
+
functions, types, variables, parameters, pattern bindings and enum cases.
|
|
18
|
+
*/
|
|
19
|
+
declare const localCompletionSource: CompletionSource;
|
|
20
|
+
|
|
21
|
+
declare const swiftLanguage: LRLanguage;
|
|
22
|
+
/**
|
|
23
|
+
Swift language support, with completion for keywords, snippets, the
|
|
24
|
+
standard library and the names declared in the file.
|
|
25
|
+
*/
|
|
26
|
+
declare function swift(): LanguageSupport;
|
|
27
|
+
|
|
28
|
+
export { localCompletionSource, parser, snippets, swift, swiftCompletion, swiftLanguage };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LRParser } from '@lezer/lr';
|
|
2
|
+
import { LanguageSupport, LRLanguage } from '@codemirror/language';
|
|
3
|
+
import { CompletionSource, Completion } from '@codemirror/autocomplete';
|
|
4
|
+
|
|
5
|
+
declare const parser: LRParser
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
Snippets for the constructs a Swift file is built from.
|
|
9
|
+
*/
|
|
10
|
+
declare const snippets: readonly Completion[];
|
|
11
|
+
/**
|
|
12
|
+
Keywords, snippets, and the standard library names in the lists above.
|
|
13
|
+
*/
|
|
14
|
+
declare const swiftCompletion: CompletionSource;
|
|
15
|
+
/**
|
|
16
|
+
Completes the names declared in the file that are in scope at the cursor:
|
|
17
|
+
functions, types, variables, parameters, pattern bindings and enum cases.
|
|
18
|
+
*/
|
|
19
|
+
declare const localCompletionSource: CompletionSource;
|
|
20
|
+
|
|
21
|
+
declare const swiftLanguage: LRLanguage;
|
|
22
|
+
/**
|
|
23
|
+
Swift language support, with completion for keywords, snippets, the
|
|
24
|
+
standard library and the names declared in the file.
|
|
25
|
+
*/
|
|
26
|
+
declare function swift(): LanguageSupport;
|
|
27
|
+
|
|
28
|
+
export { localCompletionSource, parser, snippets, swift, swiftCompletion, swiftLanguage };
|