@exercism/codemirror-lang-scala 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,30 @@
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 written most often. They use braces, which
9
+ Scala 2 and Scala 3 both accept.
10
+ */
11
+ declare const snippets: readonly Completion[];
12
+ /**
13
+ Completes the names declared in the file that are in scope at the cursor.
14
+ */
15
+ declare const localCompletionSource: CompletionSource;
16
+ /**
17
+ Completes keywords, snippets, and the standard library's common types and
18
+ functions. After a dot it offers the common collection and string methods
19
+ instead.
20
+ */
21
+ declare const scalaCompletion: CompletionSource;
22
+
23
+ declare const scalaLanguage: LRLanguage;
24
+ /**
25
+ Scala language support, with completion for keywords, snippets, the
26
+ standard library and the names declared in the file.
27
+ */
28
+ declare function scala(): LanguageSupport;
29
+
30
+ export { localCompletionSource, parser, scala, scalaCompletion, scalaLanguage, snippets };
@@ -0,0 +1,30 @@
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 written most often. They use braces, which
9
+ Scala 2 and Scala 3 both accept.
10
+ */
11
+ declare const snippets: readonly Completion[];
12
+ /**
13
+ Completes the names declared in the file that are in scope at the cursor.
14
+ */
15
+ declare const localCompletionSource: CompletionSource;
16
+ /**
17
+ Completes keywords, snippets, and the standard library's common types and
18
+ functions. After a dot it offers the common collection and string methods
19
+ instead.
20
+ */
21
+ declare const scalaCompletion: CompletionSource;
22
+
23
+ declare const scalaLanguage: LRLanguage;
24
+ /**
25
+ Scala language support, with completion for keywords, snippets, the
26
+ standard library and the names declared in the file.
27
+ */
28
+ declare function scala(): LanguageSupport;
29
+
30
+ export { localCompletionSource, parser, scala, scalaCompletion, scalaLanguage, snippets };