fix small tiny issue with parser

This commit is contained in:
lizzie
2026-08-03 06:38:19 +00:00
parent c3f3914931
commit 8731fe7b73
+1 -1
View File
@@ -25,7 +25,7 @@ function regex(config: clikeConf): RegExp {
`(${RegExp.escape(config.multiLine)}(?:${matchOpts.join("|")})*(?:${RegExp.escape(config.multiLine)})?)`,
);
}
conds.push(`\'(\\\\(.|\\n)|[^"\\n\\\\])*\'?`);
conds.push(`\'(\\\\(.|\\n)|[^\'\\n\\\\])*\'?`);
conds.push(`"(\\\\(.|\\n)|[^"\\n\\\\])*"?`);
if (config.hashComments) {
conds.push("#.*");