This repository contains plugin for CodeMirror 6 that adds for evitaQL query language used by evitaDB database.
yarn test
yarn prepare
yarn publish
The constraints support is constructed from the src/constraints.json
(contains constraint definition and documentation)
and from the src/syntax.grammar
(actual constraints grammar for syntax highlighting and validating).
Firstly, export constraint definition using evitaDB's io.evitadb.documentation.JavaDocCopy#exportConstraintDefinitions
special JUnit test. Replace the src/constraints.json
with the generated JSON file.
Then add all new constraints from evitaDB's io.evitadb.api.query.QueryConstraints
into the src/syntax.grammar
file.