@exercism/codemirror-lang-lua 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +16 -20
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.1
2
+
3
+ The README is restructured. This release is the first published from GitHub Actions, with npm provenance.
4
+
1
5
  # Changelog
2
6
 
3
7
  ## 1.0.0
package/README.md CHANGED
@@ -1,33 +1,17 @@
1
1
  # @exercism/codemirror-lang-lua
2
2
 
3
- This is Exercism's fork of
4
- [@codincod/codemirror-lang-lua](https://codeberg.org/reeven/codemirror-lang-lua),
5
- written by CodinCod. Exercism uses it for Lua in the editor on
6
- [exercism.org](https://exercism.org). Our changes are on the `main` branch.
7
-
8
- The fork adds completion for the names declared in the file, snippets, members
9
- of the standard library tables, and fields declared on a table. It also makes
10
- blocks fold from the line where they open.
11
-
12
- The rest of this README is upstream's.
13
-
14
- ## @codincod/codemirror-lang-lua
15
-
16
- [ [**CHANGELOG**](https://codeberg.org/reeven/codemirror-lang-lua/src/branch/master/CHANGELOG.md) ]
3
+ [ [**CHANGELOG**](CHANGELOG.md) ]
17
4
 
18
5
  This package implements Lua language support for the
19
6
  [CodeMirror](https://codemirror.net/) code editor, using a
20
7
  [Lezer](https://lezer.codemirror.net/) grammar written for this package.
8
+ Exercism uses it in the Lua editor on [exercism.org](https://exercism.org).
21
9
 
22
10
  CodeMirror ships Lua as a CodeMirror 5 stream mode. A stream mode colours
23
11
  tokens and stops there. Without a tree there is no structural folding, no
24
12
  indentation that knows what a block is, and no node-aware selection.
25
13
 
26
- Written in part for [CodinCod](https://codincod.com/), a competitive coding
27
- platform, where it colours the editor people solve puzzles in.
28
-
29
- This code is released under an
30
- [MIT license](https://codeberg.org/reeven/codemirror-lang-lua/src/branch/master/LICENSE).
14
+ This code is released under an [MIT license](LICENSE).
31
15
 
32
16
  ## Install
33
17
 
@@ -48,6 +32,12 @@ const view = new EditorView({
48
32
  })
49
33
  ```
50
34
 
35
+ ## Completion
36
+
37
+ `lua()` includes completion for keywords, snippets, the names declared in the
38
+ file, the members of the standard library tables, and the fields declared on a
39
+ table. The API reference below describes each completion source.
40
+
51
41
  ## Coverage
52
42
 
53
43
  Lua 5.4, which accepts everything 5.1 through 5.3 do, so older code parses too.
@@ -123,7 +113,8 @@ library and the names declared in the file.
123
113
  **`luaLanguage`**`: LRLanguage`
124
114
 
125
115
  A language provider based on the Lezer Lua parser in this package, extended
126
- with highlighting, folding and indentation information.
116
+ with highlighting, folding and indentation information. Blocks fold from the
117
+ line where they open.
127
118
 
128
119
  **`luaCompletion`**`: CompletionSource`
129
120
 
@@ -146,3 +137,8 @@ Snippets for functions, conditionals, loops and a metatable class.
146
137
  **`parser`**`: LRParser`
147
138
 
148
139
  The raw Lezer parser, for tooling that wants the tree without an editor.
140
+
141
+ ## Contributing
142
+
143
+ Please read about how to [contribute to Exercism](https://exercism.org/docs/building).
144
+ Be sure to read the Exercism [Code of Conduct](https://exercism.org/docs/using/legal/code-of-conduct).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exercism/codemirror-lang-lua",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Lua language support for the CodeMirror code editor",
5
5
  "keywords": [
6
6
  "editor",
@@ -43,7 +43,7 @@
43
43
  "homepage": "https://github.com/exercism/codemirror-lang-lua",
44
44
  "repository": {
45
45
  "type": "git",
46
- "url": "https://github.com/exercism/codemirror-lang-lua"
46
+ "url": "git+https://github.com/exercism/codemirror-lang-lua.git"
47
47
  },
48
48
  "bugs": {
49
49
  "url": "https://github.com/exercism/codemirror-lang-lua/issues"