-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: comma will now always terminate a tag variable (#123)
- Loading branch information
1 parent
b877225
commit b8bfcd9
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"htmljs-parser": patch | ||
--- | ||
|
||
Comma will now always terminate a tag variable. |
37 changes: 37 additions & 0 deletions
37
...s__/fixtures/comma-after-tag-variable/__snapshots__/comma-after-tag-variable.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
1╭─ <let/x,y=1/> | ||
│ ││ ││ │││╰─ openTagEnd:selfClosed "/>" | ||
│ ││ ││ ││╰─ attrValue.value | ||
│ ││ ││ │╰─ attrValue "=1" | ||
│ ││ ││ ╰─ attrName | ||
│ ││ │╰─ tagVar.value | ||
│ ││ ╰─ tagVar "/x" | ||
│ │╰─ tagName "let" | ||
╰─ ╰─ openTagStart | ||
2╭─ <let/x ,y=1/> | ||
│ ││ ││ │││╰─ openTagEnd:selfClosed "/>" | ||
│ ││ ││ ││╰─ attrValue.value | ||
│ ││ ││ │╰─ attrValue "=1" | ||
│ ││ ││ ╰─ attrName | ||
│ ││ │╰─ tagVar.value | ||
│ ││ ╰─ tagVar "/x" | ||
│ │╰─ tagName "let" | ||
╰─ ╰─ openTagStart | ||
3╭─ <let/x, y=1/> | ||
│ ││ ││ │││╰─ openTagEnd:selfClosed "/>" | ||
│ ││ ││ ││╰─ attrValue.value | ||
│ ││ ││ │╰─ attrValue "=1" | ||
│ ││ ││ ╰─ attrName | ||
│ ││ │╰─ tagVar.value | ||
│ ││ ╰─ tagVar "/x" | ||
│ │╰─ tagName "let" | ||
╰─ ╰─ openTagStart | ||
4╭─ <let/x , y=1/> | ||
│ ││ ││ │││╰─ openTagEnd:selfClosed "/>" | ||
│ ││ ││ ││╰─ attrValue.value | ||
│ ││ ││ │╰─ attrValue "=1" | ||
│ ││ ││ ╰─ attrName | ||
│ ││ │╰─ tagVar.value | ||
│ ││ ╰─ tagVar "/x" | ||
│ │╰─ tagName "let" | ||
╰─ ╰─ openTagStart | ||
5╰─ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<let/x,y=1/> | ||
<let/x ,y=1/> | ||
<let/x, y=1/> | ||
<let/x , y=1/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters