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 H to list of sigil characters #502

Merged
merged 1 commit into from
Jun 15, 2023
Merged

Conversation

mus0u
Copy link
Contributor

@mus0u mus0u commented May 17, 2023

Fixes #501

This is provided by Phoenix.Component rather than by the standard library, but they're used several times in freshly generated Phoenix projects beginning in version 1.7, and without adding this the font locking quickly goes off the rails in files where ~H""" is used. although it would be great to have true HTML font locking for dealing with embedded EEx inside heredocs, this was a one-character fix sufficient for my immediate needs, so i figured i would start with this hoping others would find it useful, and then maybe take a deeper look at font locking improvements that would require heavier changes later on.

Copy link
Contributor

@victorolinasc victorolinasc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contrib :)

We still have to think how to make this customizable...

Either way, I'll merge this and add a test case later.

@victorolinasc victorolinasc merged commit 9b4065d into elixir-editors:master Jun 15, 2023
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

Successfully merging this pull request may close these issues.

add ~H to recognized sigils
2 participants