JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 68768
  • Score
    100M100P100Q184227F
  • License MIT

Monaco editor Monarch language syntax definitions for ES|QL

Package Exports

  • @elastic/monaco-esql
  • @elastic/monaco-esql/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@elastic/monaco-esql) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 { monarchLanguage } from '@elastic/monaco-esql';

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

Releasing

Publish with release-it tool:

npx release-it

License

MIT