theNewDynamic / language-hugo-vscode

Adds syntax highlighting to Hugo files in VS Code
https://marketplace.visualstudio.com/items?itemName=budparr.language-hugo-vscode
Apache License 2.0
64 stars 20 forks source link

Fix syntax highlighting of global variables. #24

Open gartov opened 2 years ago

gartov commented 2 years ago

Fixes colorization when use of a global variable does not end with a space. (i.e. When a var name does not have a space before the end of the hugo tag.) Ex: "{{$.Site.Params.address}}" No space before the "}}" Note: Using \b may be preferable. Ex: "\s|[^}]*\b"