-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support special attributes :let, :for, :stream #16
Conversation
3ebaa53
to
1721faf
Compare
Should there be a distinct highlight for |
Ah good call, I think there should be! |
@the-mikedavis Once this is merged I'll open a PR against Helix and Neovim to update the highlights 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 🚀
Adds supports for HEEx special attributes:
:let
,:for
, and:stream
.A new node has been added to the grammar,
special_attribute
, that behaves similarly to theattribute
node with the following changes:special_attribute
must have a correspondingexpression
node.special_attribute
can only be added to the following tags:start_component
,start_slot
,start_tag
, andself_closing_tag
.special_attribute_name
can only be one of the following values (more could be added in the future):let
,for
,stream
.special_attribute_name
is highlighted askeyword
This PR also adds the prettier code formatter with configuration borrowed from tree-sitter-elixir.