https://github.com/exercism/codemirror-lang-wren
Wren language support for the CodeMirror code editor.
https://github.com/exercism/codemirror-lang-wren
codemirror community-contributions-paused highlight lezer wren
Last synced: 2 months ago
JSON representation
Wren language support for the CodeMirror code editor.
- Host: GitHub
- URL: https://github.com/exercism/codemirror-lang-wren
- Owner: exercism
- License: mit
- Created: 2021-05-24T21:14:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T23:30:12.000Z (over 1 year ago)
- Last Synced: 2025-04-29T06:28:12.782Z (3 months ago)
- Topics: codemirror, community-contributions-paused, highlight, lezer, wren
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# codemirror-lang-wren 
This package implements Wren language support for the
[CodeMirror](https://codemirror.net/6/) code editor. Originally derived from the JavaScript grammar and language support.The project page for [CodeMirror](https://codemirror.net/6/) has more information, a
number of [examples](https://codemirror.net/6/examples/) and the
[documentation](https://codemirror.net/6/docs/).This code is released under an
[MIT license](https://github.com/codemirror/lang-wren/tree/main/LICENSE).### Language Support + Lezer Grammar
This includes both the CodeMirror `LanguageSupport` and the `LRLanguage` grammar all bundled into a single small repository with a simple build process.
### Maintainers
There is a very rough developer tool in `devtool` that can be used for testing.```
npm run build-devtool
```### API Reference
-
wren() → LanguageSupport
-
Wren support. Includes snippet completion.
-
wrenLanguage: LRLanguage
-
A language provider based on the Lezer Wren
parser provided in this very same package, extended with
highlighting and indentation information. -
lezerParser: Lezer#Parser
-
Lezer Wren parser.
-
snippets: Completion[]
-
A collection of simple Wren-related
snippets.