support for directives
This commit is contained in:
@@ -773,8 +773,8 @@ function parse($TEXT, exigent_mode) {
|
||||
case "string":
|
||||
var dir = S.in_directives, stat = simple_statement();
|
||||
// XXXv2: decide how to fix directives
|
||||
// if (dir && stat instanceof AST_String && !is("punc", ","))
|
||||
// return new AST_Directive({ value: stat.value });
|
||||
if (dir && stat.body instanceof AST_String && !is("punc", ","))
|
||||
return new AST_Directive({ value: stat.body.value });
|
||||
return stat;
|
||||
case "num":
|
||||
case "regexp":
|
||||
|
||||
Reference in New Issue
Block a user