samuelcolvin / jinjahtml-vscode

Syntax highlighting for jinja(2) html templates in vscode
https://marketplace.visualstudio.com/items?itemName=samuelcolvin.jinjahtml
MIT License
135 stars 53 forks source link

Add support for named block end-tags #135

Open bobbwest opened 1 year ago

bobbwest commented 1 year ago

Jinja allows you to put the name of the block after the end tag for better readability: https://jinja.palletsprojects.com/en/latest/templates/#named-block-end-tags

This change adds regexs to allow for a name after endblock. No checking is done to match the corresponding block and endblock names.

Fixes https://github.com/samuelcolvin/jinjahtml-vscode/issues/136