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

Improve diffs inside Elixir sigils #785

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

crbelaus
Copy link

@crbelaus crbelaus commented Nov 18, 2024

This pull request makes the following changes:

  1. Updates the vendored tree-sitter-elixir package
  2. Adds a few Elixir example files so we can compare diffs before and after the changes
  3. Updates the Elixir parser to consider sigils as atom nodes

This is the result (before and after):

image

Notice how after the changes, the modifications inside the ~H sigil are highlighted when previously they were not. This fixes #784

@crbelaus
Copy link
Author

Looks like updating the tree-sitter-elixir subtree has included many commits from that repository. Let me know if you prefer me to squash them into a single commit instead.

@crbelaus crbelaus changed the title Improve Elixir HEEx diffs Improve Elixir diffs inside sigils Nov 20, 2024
@crbelaus crbelaus changed the title Improve Elixir diffs inside sigils Improve diffs inside Elixir sigils Nov 20, 2024
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.

Changes in Elixir HEEx sigils are not highlighted
4 participants