elastic / elastic/esql-idea-plugin

Use the lexer for the syntax highlighting

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
enhancement syntax highlighting
Dominant language
Java
Stars
8
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Right now we are building the syntax highlighting off strings, but we have a parser!

We could be lexing the full input and applying colours depending on the type of the tokens we got.

For that we would need to turn `SOURCE_COMMANDS`, `FUNCTIONS`, etc from `CommonUtils` into lexer symbols instead of strings.

## Why

The syntax highlighting does not work right now for lower case queries, for example.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.