fix(compiler): only lex messages that are needed by angular (#14208)

To avoid the lexer erroring on syntax not supported by Angular.

PR Close #14208
This commit is contained in:
Victor Berchet
2017-01-31 09:47:10 -08:00
committed by Miško Hevery
parent 52b21275f4
commit 5921c872b6
2 changed files with 25 additions and 13 deletions

View File

@ -106,7 +106,7 @@ export function main(): void {
const XTB = `<?xml version="1.0" encoding="UTF-8" ?>
<translationbundle>
<translation id="angular">is great</translation>
<translation id="non angular">is <invalid>less</invalid> great</translation>
<translation id="non angular">is <invalid>less</invalid> {count, plural, =0 {{GREAT}}}</translation>
</translationbundle>`;
// Invalid messages should not cause the parser to throw