An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# codemirror-lang-wren ![NPM Version](https://img.shields.io/npm/v/@exercism/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.