From e78508507d3d4ba724de6b85e901060bbf2cecb2 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 16 Dec 2016 15:33:16 -0800 Subject: [PATCH] fix(compiler): do not lex `}}` when interpolation is disabled (#13531) * doc(compiler): fix the ICU expander API docs * test(compiler): add lexer and parser specs * fix(compiler): do not lex `}}` when interpolation is disabled fix #13525 --- .../src/ml_parser/icu_ast_expander.ts | 6 ++-- .../@angular/compiler/src/ml_parser/lexer.ts | 6 ++-- .../test/ml_parser/html_parser_spec.ts | 13 +++++++- .../test/ml_parser/icu_ast_expander_spec.ts | 15 ++++++++- .../compiler/test/ml_parser/lexer_spec.ts | 31 +++++++++++++++++-- 5 files changed, 61 insertions(+), 10 deletions(-) diff --git a/modules/@angular/compiler/src/ml_parser/icu_ast_expander.ts b/modules/@angular/compiler/src/ml_parser/icu_ast_expander.ts index 7c5882ffb8..1d12779519 100644 --- a/modules/@angular/compiler/src/ml_parser/icu_ast_expander.ts +++ b/modules/@angular/compiler/src/ml_parser/icu_ast_expander.ts @@ -30,9 +30,9 @@ const PLURAL_CASES: string[] = ['zero', 'one', 'two', 'few', 'many', 'other']; * * ``` * - *