-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pass through invalid embedded code as is
- Loading branch information
1 parent
0b4700c
commit 7582c5c
Showing
6 changed files
with
132 additions
and
39 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/__tests__/__snapshots__/ignore-embedded-script-errors.expected/auto.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,20 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
|
||
<style> | ||
body | ||
color: blue; | ||
</style> | ||
<script> | ||
console->log( | ||
'a' | ||
); | ||
</script> |
22 changes: 22 additions & 0 deletions
22
src/__tests__/__snapshots__/ignore-embedded-script-errors.expected/concise.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,22 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
|
||
style | ||
-- | ||
body | ||
color: blue; | ||
-- | ||
script | ||
-- | ||
console->log( | ||
'a' | ||
); | ||
-- |
20 changes: 20 additions & 0 deletions
20
src/__tests__/__snapshots__/ignore-embedded-script-errors.expected/html.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,20 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
|
||
<style> | ||
body | ||
color: blue; | ||
</style> | ||
<script> | ||
console->log( | ||
'a' | ||
); | ||
</script> |
20 changes: 20 additions & 0 deletions
20
src/__tests__/__snapshots__/ignore-embedded-script-errors.expected/with-parens.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,20 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
|
||
<style> | ||
body | ||
color: blue; | ||
</style> | ||
<script> | ||
console->log( | ||
'a' | ||
); | ||
</script> |
14 changes: 14 additions & 0 deletions
14
src/__tests__/fixtures/ignore-embedded-script-errors.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,14 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
|
||
<style> | ||
body | ||
color: blue; | ||
</style> | ||
<script> | ||
console->log( | ||
'a' | ||
); | ||
</script> |
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