diff --git a/packages/compiler/src/expression_parser/parser.ts b/packages/compiler/src/expression_parser/parser.ts index 958120a11f..111a06e046 100644 --- a/packages/compiler/src/expression_parser/parser.ts +++ b/packages/compiler/src/expression_parser/parser.ts @@ -127,7 +127,7 @@ export class Parser { for (let i = 0; i < split.expressions.length; ++i) { const expressionText = split.expressions[i]; const sourceToLex = this._stripComments(expressionText); - const tokens = this._lexer.tokenize(this._stripComments(split.expressions[i])); + const tokens = this._lexer.tokenize(sourceToLex); const ast = new _ParseAST( input, location, tokens, sourceToLex.length, false, this.errors, split.offsets[i] + (expressionText.length - sourceToLex.length))