diff --git a/content/template.js b/content/template.js index dce43378..ccc081a6 100644 --- a/content/template.js +++ b/content/template.js @@ -51,8 +51,10 @@ liberator.template = { case "boolean": return {arg}; case "function": + // Vim generally doesn't like /foo*/, because */ looks like a comment terminator. + // Using /foo*(:?)/ instead. if (processStrings) - return {String(arg).replace(/\{(.|\n)*/, "{ ... }")}; /* } vim */ + return {String(arg).replace(/\{(.|\n)*(?:)/, "{ ... }")}; return <>{arg}; case "undefined": return {arg};