Fix handling of <script> and <style>; do not minify JS and CSS code

This commit is contained in:
Wilson Lin 2020-01-10 00:12:21 +11:00
commit 8553b09eb3
13 changed files with 102 additions and 593 deletions

View file

@ -1,5 +1,6 @@
{
"COMMENT_END": "-->",
"CSS_COMMENT_END": "*/",
"SCRIPT_END": "</script",
"STYLE_END": "</style",
"INSTRUCTION_END": "?>"
}

View file

@ -1,54 +1 @@
{
"js punctuators": {
"value_type": "bool",
"//": "Some values are missing here because they are manually handled in `process_js_script` function.",
"values": {
"!": "true",
"!=": "true",
"!==": "true",
"%": "true",
"%=": "true",
"&": "true",
"&&": "true",
"&=": "true",
"*": "true",
"**": "true",
"**=": "true",
"*=": "true",
"+": "true",
"++": "true",
"+=": "true",
",": "true",
"-": "true",
"--": "true",
"-=": "true",
"...": "true",
":": "true",
";": "true",
"<": "true",
"<<": "true",
"<<=": "true",
"<=": "true",
"=": "true",
"==": "true",
"===": "true",
"=>": "true",
">": "true",
">=": "true",
">>": "true",
">>=": "true",
">>>": "true",
">>>=": "true",
"?": "true",
"[": "true",
"^": "true",
"^=": "true",
"{": "true",
"|": "true",
"|=": "true",
"||": "true",
"}": "true",
"~": "true"
}
}
}
{}