f7c867ebc2
Previously the start of a character indicated by an escape sequence was being incorrectly computed by the lexer, which caused tokens to include the start of the escaped character sequence in the preceding token. In particular this affected the name extracted from opening tags if the name was terminated by an escape sequence. For example, `<t\n>` would have the name `t\` rather than `t`. This fix refactors the lexer to use a "cursor" object to iterate over the characters in the template source. There are two cursor implementations, one expects a simple string, the other expects a string that contains JavaScript escape sequences that need to be unescaped. PR Close #28978 |
||
---|---|---|
.. | ||
util | ||
BUILD.bazel | ||
ast_serializer_spec.ts | ||
ast_spec_utils.ts | ||
html_parser_spec.ts | ||
html_whitespaces_spec.ts | ||
icu_ast_expander_spec.ts | ||
lexer_spec.ts |