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

Highlight not working properly for embedded heex #24

Open
davidahmed opened this issue Apr 14, 2023 · 4 comments
Open

Highlight not working properly for embedded heex #24

davidahmed opened this issue Apr 14, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@davidahmed
Copy link

I am on GNU Emacs 30.0.5 (Mac OS Ventura). I have the most minimal setup (basic theming).

I add only the following to my init.el

(use-package elixir-ts-mode
    :ensure t)

With just the above two lines, the Elixir code is highlighted as expected, however, the embedded heex is not highlighted properly.

Screenshot 2023-04-14 at 22 06 27

What am I missing here?

@wkirschbaum
Copy link
Owner

@davidahmed What do you mean by "properly"?

Note for emacs 30 elixir-ts-mode and heex-ts-mode's are part of emacs core. you can just add:

(require 'heex-ts-mode)
(require 'elixir-ts-mode)

and it should work.

@davidahmed
Copy link
Author

Sorry, I was not clear enough. This is what I mean by not working properly. Basically, the highlights are missing for Elixir that is embedded inside the heex.
elixir-ts-mode

@wkirschbaum
Copy link
Owner

@davidahmed is currently a limitation with the heex tree-sitter grammar. We can potentially override the heex fontification, but won't happen soon.

@wkirschbaum wkirschbaum added the bug Something isn't working label Aug 1, 2023
@wkirschbaum
Copy link
Owner

Related elixir-lang/tree-sitter-elixir#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants