Skip to content

elastic/monaco-esql

Repository files navigation

ES|QL syntax grammar for Monaco editor

This package contains the ES|QL grammar form Monarch (the Monaco editor grammar engine).

image

Usage

To highlight ES|QL code in Monaco editor, you need to register ES|QL language and its Monarch grammar:

import { language as monarchLanguage } from "@elastic/monaco-esql/lib/monarch-shared";

monaco.languages.register({ id: "esql" });
monaco.languages.setMonarchTokensProvider("esql", monarchLanguage);

Releasing

To release a new version add a publish label to the PR. Or you can run the Release Github action manually from Github web.

There is no need to bump the version manually, release-it does it automatically.

License

MIT