From 0a7dacfd0c6ff64aa7bc1b53ca248964b5803d83 Mon Sep 17 00:00:00 2001 From: Gartoc Date: Thu, 3 Mar 2022 16:29:29 -0800 Subject: [PATCH] Fix syntax highlighting of global variables. 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" --- src/syntaxes/hugo.tmLanguage.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syntaxes/hugo.tmLanguage.json b/src/syntaxes/hugo.tmLanguage.json index a867c5f..860a650 100644 --- a/src/syntaxes/hugo.tmLanguage.json +++ b/src/syntaxes/hugo.tmLanguage.json @@ -68,7 +68,7 @@ }, { "begin": "\\$\\.", - "end": "\\s", + "end": "\\s|[\\w.]*", "name": "support.function.builtin.hugo" }, {