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:

committed by
Miško Hevery

parent
52b21275f4
commit
5921c872b6
@ -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
|
||||
|
Reference in New Issue
Block a user