-
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: temporarily remove multi line expression handling to avoid regre…
…ssion
- Loading branch information
1 parent
01595dc
commit 60511a7
Showing
8 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions
26
...et-terminated-by-semi-colon/__snapshots__/scriptlet-terminated-by-semi-colon.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,26 @@ | ||
1╭─ <div> | ||
│ │ ╰─ openTagEnd | ||
╰─ ╰─ tagName "div" | ||
2╭─ $ let i = 10; | ||
│ │ │ ╰─ scriptlet.value "let i = 10;" | ||
│ │ ╰─ scriptlet "$ let i = 10;" | ||
╰─ ╰─ text "\n " | ||
3╭─ <while(i--)> | ||
│ │ │ ││ ╰─ openTagEnd | ||
│ │ │ │╰─ tagArgs.value "i--" | ||
│ │ │ ╰─ tagArgs "(i--)" | ||
│ │ ╰─ tagName "while" | ||
╰─ ╰─ text "\n " | ||
4╭─ <test/> | ||
│ │ │ ╰─ openTagEnd:selfClosed "/>" | ||
│ │ ╰─ tagName "test" | ||
╰─ ╰─ text "\n " | ||
5╭─ </while> | ||
│ │ │ ╰─ closeTag(while).value "while" | ||
│ │ ╰─ closeTag(while) "</while>" | ||
╰─ ╰─ text "\n " | ||
6╭─ </div> | ||
│ │ ╰─ closeTag(div).value "div" | ||
│ ├─ text "\n" | ||
╰─ ╰─ closeTag(div) "</div>" | ||
7╰─ |
6 changes: 6 additions & 0 deletions
6
src/__tests__/fixtures/scriptlet-terminated-by-semi-colon/input.marko
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,6 @@ | ||
<div> | ||
$ let i = 10; | ||
<while(i--)> | ||
<test/> | ||
</while> | ||
</div> |
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
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