This package implements Wren language support for the CodeMirror code editor. Originally derived from the JavaScript grammar and language support.
The project page for CodeMirror has more information, a number of examples and the documentation.
This code is released under an MIT license.
This includes both the CodeMirror LanguageSupport
and the LRLanguage
grammar all bundled into a single small repository with a simple build process.
There is a very rough developer tool in devtool
that can be used for testing.
npm run build-devtool
-
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.