diff --git a/components/prism-css.js b/components/prism-css.js
index c19692070c..4570d8f2f4 100644
--- a/components/prism-css.js
+++ b/components/prism-css.js
@@ -22,15 +22,7 @@ Prism.languages.css = {
Prism.languages.css['atrule'].inside.rest = Prism.languages.css;
if (Prism.languages.markup) {
- Prism.languages.insertBefore('markup', 'tag', {
- 'style': {
- pattern: /(\r\n\t`"]]],
- ["punctuation", ";"]
+ ["language-javascript", [
+ ["keyword", "let"],
+ " str ",
+ ["operator", "="],
+ ["template-string", [
+ ["string", "`\r\n\t\t\r\n\t`"]
+ ]],
+ ["punctuation", ";"]
+ ]]
]],
["tag", [
["tag", [
@@ -35,4 +38,4 @@
----------------------------------------------------
-Checks for Javascript usage inside Markup, using
+
+';
+]]>
+"foo"
+
+
----------------------------------------------------
[
-
["tag", [
["tag", [
["punctuation", "<"],
"script"
]],
- ["attr-name", [
- "type"
- ]],
+ ["attr-name", ["type"]],
["attr-value", [
["punctuation", "="],
["punctuation", "\""],
@@ -24,9 +30,11 @@
["punctuation", ">"]
]],
["script", [
- ["function", "foo"],
- ["punctuation", "("],
- ["punctuation", ")"]
+ ["language-javascript", [
+ ["function", "foo"],
+ ["punctuation", "("],
+ ["punctuation", ")"]
+ ]]
]],
["tag", [
["tag", [
@@ -44,7 +52,56 @@
["punctuation", ">"]
]],
["script", [
- ["string", "\"foo bar\""]
+ ["language-javascript", [
+ ["string", "\"foo bar\""]
+ ]]
+ ]],
+ ["tag", [
+ ["tag", [
+ ["punctuation", ""],
+ "script"
+ ]],
+ ["punctuation", ">"]
+ ]],
+
+ ["tag", [
+ ["tag", [
+ ["punctuation", "<"],
+ "script"
+ ]],
+ ["attr-name", ["type"]],
+ ["attr-value", [
+ ["punctuation", "="],
+ ["punctuation", "\""],
+ "application/javascript",
+ ["punctuation", "\""]
+ ]],
+ ["punctuation", ">"]
+ ]],
+ ["script", [
+ ["language-javascript", [
+ ["keyword", "var"],
+ " a ",
+ ["operator", "="],
+ ["number", "0"],
+ ["punctuation", ";"]
+ ]],
+ ["included-cdata", [
+ ["cdata", "'"],
+ ["punctuation", ";"]
+ ]]
+ ]],
+ ["cdata", "]]>"]
+ ]],
+ ["language-javascript", [
+ ["string", "\"foo\""]
+ ]]
]],
["tag", [
["tag", [
@@ -57,4 +114,4 @@
----------------------------------------------------
-Checks for Javascript usage inside Markup, using