@exercism/codemirror-lang-scala 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 +23 -27
  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,28 +1,5 @@
1
1
  # @exercism/codemirror-lang-scala
2
2
 
3
- This is Exercism's fork of
4
- [@codincod/codemirror-lang-scala](https://codeberg.org/reeven/codemirror-lang-scala),
5
- which CodinCod wrote. Exercism uses it for the Scala editor on exercism.org.
6
- Our changes live on the `main` branch. Upstream's own branch is `master`.
7
-
8
- The fork adds:
9
-
10
- * Completion of the names declared in the file. It offers functions, values,
11
- parameters, types, pattern bindings and imports wherever they are in scope.
12
- * Snippets for `def`, `val`, `if`, `match`, `for`, `while`, `try`, `class`,
13
- `case class`, `object`, `trait` and `enum`.
14
- * Common collection and string methods after a dot, instead of keywords.
15
- * Completion stays off inside strings and comments. Code inside `${...}` still
16
- gets it.
17
- * Parsing of objects named with symbols, such as `object ~`.
18
- * Parsing of a lambda passed after a colon, with its body on the lines below, as in
19
- `xs.map: x =>`. Scala 3.3 added this form.
20
-
21
- Upstream's own README follows.
22
-
23
- ---
24
-
25
-
26
3
  This package implements [Scala](https://www.scala-lang.org/) language support
27
4
  for the [CodeMirror](https://codemirror.net/) code editor: a
28
5
  [Lezer](https://lezer.codemirror.net/) grammar, highlighting, indentation,
@@ -36,11 +13,9 @@ a longer keyword list.
36
13
  Both dialects are read by one grammar. A file may brace its blocks or indent
37
14
  them, and may do both.
38
15
 
39
- Written in part for [CodinCod](https://codincod.com/), a competitive coding
40
- platform, where it colours the editor people solve puzzles in.
16
+ Exercism uses this package in the Scala editor on [exercism.org](https://exercism.org).
41
17
 
42
- This code is released under an
43
- [MIT license](https://codeberg.org/reeven/codemirror-lang-scala/src/branch/master/LICENSE).
18
+ This code is released under an [MIT license](LICENSE).
44
19
 
45
20
  ## Install
46
21
 
@@ -75,6 +50,19 @@ object Shape:
75
50
  })
76
51
  ```
77
52
 
53
+ ## Completion
54
+
55
+ Completion offers:
56
+
57
+ * The names declared in the file. It offers functions, values, parameters,
58
+ types, pattern bindings and imports wherever they are in scope.
59
+ * Snippets for `def`, `val`, `if`, `match`, `for`, `while`, `try`, `class`,
60
+ `case class`, `object`, `trait` and `enum`.
61
+ * Common collection and string methods after a dot, instead of keywords.
62
+
63
+ Completion stays off inside strings and comments. Code inside `${...}` still
64
+ gets it.
65
+
78
66
  ## What it reads
79
67
 
80
68
  Measured against the stream mode it replaces, over 1072 files of Scala from
@@ -148,6 +136,9 @@ Smaller things worth naming.
148
136
  arrow. `A Ior B` is `Ior[A, B]`, which is how cats and zio are written.
149
137
  * **A list may end on a comma.** Scala 2.13 lets a bracket broken over several
150
138
  lines carry one after its last item, and every build file does.
139
+ * **An object may be named with symbols**, such as `object ~`.
140
+ * **A lambda may follow a colon.** In `xs.map: x =>`, the lambda's body sits on
141
+ the lines below. Scala 3.3 added this form.
151
142
 
152
143
  ## What it does not read
153
144
 
@@ -180,3 +171,8 @@ npm install # installs the dependencies and builds dist/
180
171
  npm run build # regenerates the parser and rebuilds dist/
181
172
  npm test # builds, then runs the tests
182
173
  ```
174
+
175
+ ## Contributing
176
+
177
+ Please read about how to [contribute to Exercism](https://exercism.org/docs/building).
178
+ 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-scala",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Scala language support for the CodeMirror code editor",
5
5
  "keywords": [
6
6
  "codemirror",
@@ -46,7 +46,7 @@
46
46
  "homepage": "https://github.com/exercism/codemirror-lang-scala",
47
47
  "repository": {
48
48
  "type": "git",
49
- "url": "https://github.com/exercism/codemirror-lang-scala"
49
+ "url": "git+https://github.com/exercism/codemirror-lang-scala.git"
50
50
  },
51
51
  "bugs": {
52
52
  "url": "https://github.com/exercism/codemirror-lang-scala/issues"