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 calls to erlang modules as modules #26

Merged
merged 1 commit into from
Oct 13, 2021
Merged

highlight calls to erlang modules as modules #26

merged 1 commit into from
Oct 13, 2021

Conversation

the-mikedavis
Copy link
Contributor

👋 hiya!

Following up on elixir-lang/tree-sitter-elixir#5 (comment):

This PR adds a post-processing step that transforms regular atoms to be modules (:name_classes) when they're part on the left-hand-side of a . operator, so a call of a function on an erlang module highlights the same as a call on an Elixir module.

I'm pretty new to the makeup_elixir codebase so this might not be the correct place to put this transformation. Let me know!

cc: @jonatanklosko

@josevalim josevalim merged commit a8fb874 into elixir-makeup:master Oct 13, 2021
@josevalim
Copy link
Collaborator

💚 💙 💜 💛 ❤️

@the-mikedavis the-mikedavis deleted the highlight-atom-modules-as-modules branch October 13, 2021 16:57
@tmbb
Copy link
Collaborator

tmbb commented Oct 15, 2021

Kinda late to the party, but I agree with this. I'd have handled the transformation exactly the same way.

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.

3 participants