-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: scriptlet block with semi-colon (#148)
- Loading branch information
1 parent
e864b4b
commit 948830e
Showing
4 changed files
with
33 additions
and
1 deletion.
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 | ||
--- | ||
|
||
Fix issue with semi-colon after a block scriptlet. |
13 changes: 13 additions & 0 deletions
13
...criptlet-block-with-semi-colon/__snapshots__/scriptlet-block-with-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,13 @@ | ||
1╭─ $ { hello() }; | ||
│ │ ╰─ scriptlet:block.value " hello() " | ||
╰─ ╰─ scriptlet:block " { hello() };" | ||
2├─ | ||
3╭─ $ { hello() } ; | ||
│ │ ╰─ scriptlet:block.value " hello() " | ||
╰─ ╰─ scriptlet:block " { hello() } ;" | ||
4├─ | ||
5╭─ $ { hello() }; | ||
│ │ ╰─ scriptlet:block.value " hello() " | ||
╰─ ╰─ scriptlet:block " { hello() };" | ||
6├─ | ||
7╰─ |
6 changes: 6 additions & 0 deletions
6
src/__tests__/fixtures/scriptlet-block-with-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 @@ | ||
$ { hello() }; | ||
|
||
$ { hello() } ; | ||
|
||
$ { hello() }; | ||
|
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