mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
The code block tokenizer silently ignored metadata it didn't recognize,
and `expandRangeStringValues` swallowed highlight parse errors, so a
typo like `header="foo.ts"` or a missing `highlight:` key rendered the
block without its header or highlighting and nothing flagged it.
The tokenizer now throws when the metadata contains anything it doesn't
parse or when `highlight` isn't a valid range. The highlight rule also
stops at its closing bracket, so `highlight` no longer swallows keys
that follow it, like `{highlight: [9], header: "hero.service.ts"}`.