-
Notifications
You must be signed in to change notification settings - Fork 145
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
Fix Glimmer Concatenation #119
Fix Glimmer Concatenation #119
Conversation
Glimmer supports concatenation via the `(concat)` helper. The plugin is currently incorrectly breaking up the concatenation This adds a failing test showing the issue.
I think, for now at least, we should special-case |
Use ignoreLast in a Glimmer StringLiteral if the parent is a SubExpression (meaning helper) and the last character of the node value is not whitespace Meaning `(concat "border-l-blue border-" @color)` does not get sorted While `(concat "border-l-blue border ")` does get sorted
The main issue is with (concat) so we will hardcode that in If in the future we think we need more helpers we can do that
a1a1946
to
4183b28
Compare
@thecrypticace Can you take another look please? |
Thanks! Will get a release out this week with this change. Appreciate it! ✨ |
Thank you! Can't wait! |
Hey @thecrypticace, |
@Alonski Ah sorry! This one slipped by me. Just published v0.2.3 on NPM |
Thanks! @MichalBryxi let's update our repo! |
Glimmer supports concatenation via the
(concat)
helper.The plugin is currently incorrectly breaking up the concatenation
I first added a failing test showing the issue.
Use ignoreLast in a Glimmer StringLiteral if the parent is a SubExpression (meaning helper) and the last character of the node value is not whitespace
Meaning
(concat "border-l-blue border-" @color)
does not get sortedWhile
(concat "border-l-blue border ")
does get sorted