this line will except error. Escape also ignored in params!
my fast fix in this lines in lexer.js
line 324:
case '\':
skipq = true;
break;
case '"':
case "'":
if (!skipq) {
if('key' == state) { skipq = false; break; }
state = 'string' == state
? 'val'
: 'string';
val += c;
break;
}
default:
skipq = false;
if ( c == '"' ) c = '\'+c;
switch (state) {
case 'key': key += c; break;
case 'val': val += c; break;
case 'string': val += c; break;
}
after
div(ref1:"dsdasd", ref2:'{ dsfd: \"data1\"}') - working
div(ref1:"dsdasd", ref2:'{ dsfd: "data1"}') - working
sample: div(ref1:"dsdasd", ref2:'{ dsfd: "data1"}')
this line will except error. Escape also ignored in params!
my fast fix in this lines in lexer.js
line 324: case '\': skipq = true; break; case '"': case "'": if (!skipq) { if('key' == state) { skipq = false; break; } state = 'string' == state ? 'val' : 'string'; val += c; break; } default: skipq = false; if ( c == '"' ) c = '\'+c; switch (state) { case 'key': key += c; break; case 'val': val += c; break; case 'string': val += c; break; }
after div(ref1:"dsdasd", ref2:'{ dsfd: \"data1\"}') - working div(ref1:"dsdasd", ref2:'{ dsfd: "data1"}') - working