@exercism/codemirror-lang-wren 0.7.1 → 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.
package/README.md CHANGED
@@ -14,7 +14,7 @@ This code is released under an
14
14
 
15
15
  ### Language Support + Lezer Grammar
16
16
 
17
- This includes both the CodeMirror `LanguageSupport` and the `LezerLanguage` grammar all bundled into a single small repository with a simple build process.
17
+ This includes both the CodeMirror `LanguageSupport` and the `LRLanguage` grammar all bundled into a single small repository with a simple build process.
18
18
 
19
19
 
20
20
  ### Maintainers
@@ -24,6 +24,14 @@ There is a very rough developer tool in `devtool` that can be used for testing.
24
24
  npm run build-devtool
25
25
  ```
26
26
 
27
+ The parser tests are in `test/cases`, and the completion tests are in
28
+ `test/test-completion.js`. After changing the grammar, run
29
+ `npm run build-grammar` before the tests.
30
+
31
+ ```
32
+ npm test
33
+ ```
34
+
27
35
 
28
36
 
29
37
  ### API Reference
@@ -31,11 +39,12 @@ npm run build-devtool
31
39
  <dt id="user-content-wren">
32
40
  <code>wren() → <a href="https://codemirror.net/6/docs/ref#language.LanguageSupport">LanguageSupport</a></code></dt>
33
41
 
34
- <dd><p>Wren support. Includes snippet completion.</p>
42
+ <dd><p>Wren support. Includes completion of snippets, keywords, core classes,
43
+ the names in scope at the cursor, and methods after a dot.</p>
35
44
  </dd>
36
45
 
37
46
  <dt id="user-content-wrenlanguage">
38
- <code>wrenLanguage: <a href="https://codemirror.net/6/docs/ref#language.LezerLanguage">LezerLanguage</a></code></dt>
47
+ <code>wrenLanguage: <a href="https://codemirror.net/6/docs/ref#language.LRLanguage">LRLanguage</a></code></dt>
39
48
 
40
49
  <dd><p>A language provider based on the Lezer Wren
41
50
  parser provided in this very same package, extended with
@@ -55,3 +64,24 @@ highlighting and indentation information.</p>
55
64
  <dd><p>A collection of simple Wren-related
56
65
  <a href="https://codemirror.net/6/docs/ref/#autocomplete.snippet">snippets</a>.</p>
57
66
  </dd>
67
+
68
+ <dt id="user-content-localcompletionsource">
69
+ <code>localCompletionSource: <a href="https://codemirror.net/6/docs/ref#autocomplete.CompletionSource">CompletionSource</a></code></dt>
70
+
71
+ <dd><p>Completes the variables, parameters, classes, methods and fields
72
+ that are in scope at the cursor.</p>
73
+ </dd>
74
+
75
+ <dt id="user-content-membercompletionsource">
76
+ <code>memberCompletionSource: <a href="https://codemirror.net/6/docs/ref#autocomplete.CompletionSource">CompletionSource</a></code></dt>
77
+
78
+ <dd><p>Completes methods after a dot. After a class name, it offers the
79
+ class's static methods and constructors. After any other value, it offers
80
+ the instance methods of the core classes and of the classes in the file.</p>
81
+ </dd>
82
+
83
+ <dt id="user-content-globalcompletionsource">
84
+ <code>globalCompletionSource: <a href="https://codemirror.net/6/docs/ref#autocomplete.CompletionSource">CompletionSource</a></code></dt>
85
+
86
+ <dd><p>Completes snippets, keywords and the core classes.</p>
87
+ </dd>