edgedb-editor-plugin icon indicating copy to clipboard operation
edgedb-editor-plugin copied to clipboard

Missing `|` and `&` from syntax highlighting

Open scotttrinh opened this issue 5 months ago • 1 comments

These characters are parsed as just source.edgeql instead of keyword.operator.edgeql and source.edgeql.

Image

scotttrinh avatar Jul 21 '25 14:07 scotttrinh

The problem is that:

  • we generate this grammar from introspecting the schema,
  • operators are generated from schema::Operator,
  • | and & are not operators, since they are used in type expressions.

We should add a way to mark tokens other than actual operators as operators.

aljazerzen avatar Jul 21 '25 18:07 aljazerzen