We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ca80a commit d62f26bCopy full SHA for d62f26b
src/melody/melody-parser/Lexer.js
@@ -561,17 +561,15 @@ export default class Lexer {
561
matchAttributeValue(pos) {
562
const input = this.input;
563
const start = this.state === State.STRING_SINGLE ? "'" : '"';
564
- let c;
565
- if (input.la(0) === "{") {
+ let c = input.la(0);
+ const c2 = input.la(1);
566
+ if (c === "{" && (c2 === "{" || c2 === "#" || c2 === "%")) {
567
return this.matchExpressionToken(pos);
568
}
569
while ((c = input.la(0)) !== start && c !== EOF) {
570
if (c === "\\" && input.la(1) === start) {
571
input.next();
572
- } else if (c === "{") {
573
- // interpolation start
574
- break;
575
} else if (c === start) {
576
break;
577
} else {
0 commit comments