diff options
| author | Matt Schick <matt@schickm.com> | 2018-09-10 07:22:29 -0500 |
|---|---|---|
| committer | Matt Schick <matt@schickm.com> | 2018-09-26 06:12:24 -0500 |
| commit | e7e87db94ea163e411e204f14fb8c23e06979cb7 (patch) | |
| tree | 89ac43c0e1958522e18d91d73ea7910922642ed4 /src/assert.cc | |
| parent | 93f913705abafbd7341e4fdd897bef5f6ef4c0dd (diff) | |
Rework the handlebars highlighter
- Removes -recurse from handlebars comments. Handlebars parsers (janl/mustache.js, ember-cli/ember-cli-htmlbars), do not treat comments as recursive, so don't highlight them as so.
- Creates shared/hbs-file highligher group. This represents a handlebars file, which is html that happens to contain some handlebars tags.
- Augments the shared/html highlighter when needed. Because handlebars lives inside of html, we need to add the highlighter inside of it. Since there's no way to scope modifications of a shared highlighter to a window, here I'm modifying/unmodifying the shared/html highlighter whenever the user attaches/detaches a filetype of "hbs" to/from the window.
- Matches namespaced helpers as well. In htmlbars, helpers (components) can have '/'s in them, so make sure to continue highlighting through those. Also removes unused capturing groups.
- Allows for de-indenting when closing a block expression
- Brings in html highlighter hooks
- Improves indent matching on close of yielded blocks. Previous version just flat out didn't work.
Diffstat (limited to 'src/assert.cc')
0 files changed, 0 insertions, 0 deletions
