Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LKQL language highlight #1144

Open
Heziode opened this issue May 5, 2023 · 1 comment
Open

Add LKQL language highlight #1144

Heziode opened this issue May 5, 2023 · 1 comment

Comments

@Heziode
Copy link

Heziode commented May 5, 2023

Context

Currently, it is a little bit a pain in the ass to develop complex rule using LKQL, without syntax highlight.

Solution

It could be nice to have a LKQL (LangKit Query Language) syntax highlight (and maybe auto-completion) into VSCode (into Ada extension or in a separate extension). it could have it's own LSP.

@raph-amiard
Copy link
Member

Hello Heziode!

FWIW (and sorry), we have an highlighter for vim here: https://github.com/AdaCore/langkit-query-language/blob/master/utils/lkql.vim

It should be relatively easy to translate this to TMlanguage to accomodate VScode and others

OTOH for the completion/LSP part, we're still pretty far from that. One of the reasons is that for the moment LKQL is fully dynamic, and we want to introduce a type system in the near future, that will largely help in providing code intelligence features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants