This package implements CUE language support for the CodeMirror code editor.
npm i codemirror-lang-cueimport {EditorView} from '@codemirror/view';
import {EditorState} from '@codemirror/state';
import {cue} from "codemirror-lang-cue";
const state = EditorState.create({
doc: 'my cue code',
extensions: [
cue(),
]
});
const view = new EditorView({
parent: document.querySelector('#editor'),
state
});The parser is version-agnostic. It accepts supported legacy and experimental syntax, leaving language-version and experiment validation to the CUE toolchain.
pnpm testTests include vendored upstream CUE fixtures, with a pinned source revision and a reproducible importer. No network is needed to run them.
