correct declaration quoting

This commit is contained in:
anon
2023-11-20 00:05:19 +01:00
parent a73fe6224d
commit 8e7a0a4344
2 changed files with 5 additions and 2 deletions

View File

@ -211,6 +211,9 @@ identifier [A-z][A-z0-9]*
[^\\](\"|\') {
if (current_string_quote == yytext[1]) {
ECHOC(yytext[0]);
if (state_buffer == DECLARATION) {
ECHOC(yytext[1]);
}
BEGIN state_buffer;
} else {
ECHO;

View File

@ -1,5 +1,5 @@
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN
"http://www.w3.org/TR/html4/strict.dtd;
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";
html (lang: en) {
head {
meta (charset: UTF-8);