-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3598 from masatake/html--html-string-in-js-in-html
- Loading branch information
Showing
7 changed files
with
98 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,3 @@ | ||
--sort=no | ||
--extras=+g | ||
--fields=+Kl |
3 changes: 3 additions & 0 deletions
3
Units/parser-html.r/comment-starter-in-script.d/expected.tags
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,3 @@ | ||
Foo input.html /^<h1>Foo<\/h1>$/;" heading1 language:HTML | ||
BAR input.html /^<h1>BAR<\/h1>$/;" heading1 language:HTML | ||
x input.html /^ var x/;" variable language:JavaScript |
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 @@ | ||
<h1>Foo</h1> | ||
<script> | ||
// <!-- | ||
var x | ||
</script> | ||
<h1>BAR</h1> |
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,3 @@ | ||
--sort=no | ||
--extras=+g | ||
--fields=+Kl |
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 @@ | ||
Foo input.html /^<h1>Foo<\/h1>$/;" heading1 language:HTML | ||
BAR input.html /^<h1>BAR<\/h1>$/;" heading1 language:HTML | ||
bar input.html /^ const bar = 123$/;" constant language:JavaScript | ||
baz input.html /^ function baz () {$/;" function language:JavaScript | ||
bar2 input.html /^ const bar2 = 123$/;" constant language:JavaScript | ||
baz2 input.html /^ function baz2 () {$/;" function language:JavaScript |
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,24 @@ | ||
<!-- Taken from #3581 submitted by @polyscone --> | ||
<h1>Foo</h1> | ||
|
||
<script> | ||
const bar = 123 | ||
|
||
// I don't know why, but an apostrophe breaks | ||
// the JavaScript guest language | ||
function baz () { | ||
return 'abc' | ||
} | ||
</script> | ||
|
||
<script> | ||
const bar2 = 123 | ||
|
||
// I don"t know why, but an apostrophe breaks | ||
// the JavaScript guest language | ||
function baz2 () { | ||
return 'abc' | ||
} | ||
</script> | ||
|
||
<h1>BAR</h1> |
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