@exercism/codemirror-lang-elixir 1.0.0 → 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.
- package/CHANGELOG.md +4 -0
- package/README.md +26 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# codemirror-lang-elixir
|
|
2
2
|
|
|
3
|
-
This package implements Elixir language support for the [CodeMirror](https://codemirror.net/) code editor.
|
|
4
|
-
|
|
5
3
|
## Exercism's fork
|
|
6
4
|
|
|
7
|
-
This is Exercism's fork of [livebook-dev/codemirror-lang-elixir](https://github.com/livebook-dev/codemirror-lang-elixir)
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
This is Exercism's fork of [livebook-dev/codemirror-lang-elixir](https://github.com/livebook-dev/codemirror-lang-elixir).
|
|
6
|
+
Exercism uses it in the Elixir editor on [exercism.org](https://exercism.org).
|
|
7
|
+
It is published on npm as `@exercism/codemirror-lang-elixir`.
|
|
8
|
+
Our changes are on the `exercism` branch, and the `main` branch follows upstream.
|
|
9
|
+
Below this section, the README is upstream's.
|
|
10
10
|
|
|
11
|
+
The grammar comes unchanged from [lezer-elixir](https://github.com/livebook-dev/lezer-elixir).
|
|
11
12
|
The fork adds autocomplete to `elixir()`:
|
|
12
13
|
|
|
13
14
|
- Keywords, Kernel functions and snippets for common constructs (`defmodule`, `def`, `case`, `cond`, `with`, `for`, `fn` and others).
|
|
@@ -17,7 +18,26 @@ The fork adds autocomplete to `elixir()`:
|
|
|
17
18
|
- Autocompletion is switched off inside strings, comments and atoms, except inside string interpolation.
|
|
18
19
|
|
|
19
20
|
`bin/stdlib.exs` generates the standard library lists in `src/stdlib.ts`.
|
|
20
|
-
To rebuild them for a newer Elixir, run
|
|
21
|
+
To rebuild them for a newer Elixir, run `bin/stdlib.exs` and follow the instructions in its comments.
|
|
22
|
+
|
|
23
|
+
### Install
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
npm install @exercism/codemirror-lang-elixir
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Building and testing
|
|
30
|
+
|
|
31
|
+
Run `npm install`, then `npm run build` to build the package into `dist/`, and `npm test` to run the tests.
|
|
32
|
+
|
|
33
|
+
### Contributing
|
|
34
|
+
|
|
35
|
+
Contributions to this fork follow the Exercism [Code of Conduct](https://exercism.org/docs/using/legal/code-of-conduct).
|
|
36
|
+
Please read about how to [contribute to Exercism](https://exercism.org/docs/building).
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
This package implements Elixir language support for the [CodeMirror](https://codemirror.net/) code editor.
|
|
21
41
|
|
|
22
42
|
## Installation
|
|
23
43
|
|
|
@@ -38,10 +58,6 @@ new EditorView({
|
|
|
38
58
|
});
|
|
39
59
|
```
|
|
40
60
|
|
|
41
|
-
## Building and testing
|
|
42
|
-
|
|
43
|
-
Run `npm install`, then `npm run build` to build the package into `dist/`, and `npm test` to run the tests.
|
|
44
|
-
|
|
45
61
|
## License
|
|
46
62
|
|
|
47
63
|
Copyright (C) 2024 Dashbit
|