@exercism/codemirror-lang-elixir 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.
@@ -0,0 +1,35 @@
1
+ import { LRLanguage, LanguageSupport } from '@codemirror/language';
2
+ import { Completion, CompletionSource } from '@codemirror/autocomplete';
3
+
4
+ /**
5
+ A syntax provider based on the [Lezer Elixir parser](https://github.com/lezer-parser/elixir),
6
+ extended with highlighting and indentation information.
7
+ */
8
+ declare const elixirLanguage: LRLanguage;
9
+
10
+ /**
11
+ Snippets for common Elixir constructs.
12
+ */
13
+ declare const snippets: readonly Completion[];
14
+ /**
15
+ Completes keywords, Kernel functions, snippets, standard library
16
+ modules, functions after a standard library module name (such as
17
+ `Enum.`) and built-in module attributes.
18
+ */
19
+ declare const elixirCompletionSource: CompletionSource;
20
+ /**
21
+ Completes names declared in the file: functions, parameters,
22
+ variables, modules, aliases and module attributes. It offers a
23
+ variable only after the place it is bound, and a name only where it
24
+ is in scope. After `Module.` it offers the public functions of a
25
+ module defined in the file.
26
+ */
27
+ declare const localCompletionSource: CompletionSource;
28
+
29
+ /**
30
+ Elixir language support, with completion of keywords, snippets,
31
+ standard library functions and names declared in the file.
32
+ */
33
+ declare function elixir(): LanguageSupport;
34
+
35
+ export { elixir, elixirCompletionSource, elixirLanguage, localCompletionSource, snippets };
@@ -0,0 +1,35 @@
1
+ import { LRLanguage, LanguageSupport } from '@codemirror/language';
2
+ import { Completion, CompletionSource } from '@codemirror/autocomplete';
3
+
4
+ /**
5
+ A syntax provider based on the [Lezer Elixir parser](https://github.com/lezer-parser/elixir),
6
+ extended with highlighting and indentation information.
7
+ */
8
+ declare const elixirLanguage: LRLanguage;
9
+
10
+ /**
11
+ Snippets for common Elixir constructs.
12
+ */
13
+ declare const snippets: readonly Completion[];
14
+ /**
15
+ Completes keywords, Kernel functions, snippets, standard library
16
+ modules, functions after a standard library module name (such as
17
+ `Enum.`) and built-in module attributes.
18
+ */
19
+ declare const elixirCompletionSource: CompletionSource;
20
+ /**
21
+ Completes names declared in the file: functions, parameters,
22
+ variables, modules, aliases and module attributes. It offers a
23
+ variable only after the place it is bound, and a name only where it
24
+ is in scope. After `Module.` it offers the public functions of a
25
+ module defined in the file.
26
+ */
27
+ declare const localCompletionSource: CompletionSource;
28
+
29
+ /**
30
+ Elixir language support, with completion of keywords, snippets,
31
+ standard library functions and names declared in the file.
32
+ */
33
+ declare function elixir(): LanguageSupport;
34
+
35
+ export { elixir, elixirCompletionSource, elixirLanguage, localCompletionSource, snippets };