Commit e14a94b
Fix Glimmer Concatenation (#119)
* test(Glimmer): Add Failing Test For Glimmer Concatenation
Glimmer supports concatenation via the `(concat)` helper.
The plugin is currently incorrectly breaking up the concatenation
This adds a failing test showing the issue.
* fix(Glimmer): Fix Glimmer Concatenation
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
* fix(Glimmer): Only Fix Concat Helper
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
* Update changelog
* Tweak regex
---------
Co-authored-by: Jordan Pittman <[email protected]>1 parent 0a5e7d3 commit e14a94b
3 files changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
344 | 349 | | |
345 | 350 | | |
346 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
162 | 175 | | |
163 | 176 | | |
164 | 177 | | |
| |||
0 commit comments