emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eglot's interface for major modes


From: Sebastian Poeplau
Subject: Re: eglot's interface for major modes
Date: Sat, 08 Apr 2023 11:26:52 +0200

> The current ELPA ada-mode supports eglot as a backend; used that way, it
> requires no compilation of Ada files. Have you tried that? If you have
> questions about that, it would be best to use the ada-mode mailing list
> (https://savannah.nongnu.org/mail/?group=ada-mode), or just email me
> directly.

Your discussion of the Ada Language Server in the ada-mode manual is
actually what got me wondering how hard it would be to write a very
basic major mode for Ada that can work with a language server.

And then there's one more thing I'm exploring with this major mode. The
Language Server Protocol has a concept of "semantic tokens" [1] -
essentially server-provided fontification. The VS Code plugin for Ada
uses it, and I've been able to make it work in Emacs with lsp-mode.
(eglot support for semantic tokens seems to be work in progress [2].)
The approach is probably inferior to the tree-sitter support for Ada
that you and others are working on, but until the tree-sitter grammar
for Ada is ready and tree-sitter widely available it seemed like an
interesting option to play with.

[1] 
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_semanticTokens
[2] https://github.com/joaotavora/eglot/pull/839



reply via email to

[Prev in Thread] Current Thread [Next in Thread]