We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77d5bb0 commit dc9d41dCopy full SHA for dc9d41d
src/theme/prism/custom/prism-go-template.js
@@ -4,7 +4,7 @@ const lang = "go-template"
4
Prism.languages[lang] = {
5
// Go template comments {{/* ... */}}
6
"go-template-comment": {
7
- pattern: /\{\{\/\*[\s\S]*?\*\/\}\}/,
+ pattern: /\{\{[\s\-]*\/\*[\s\S]*?\*\/[\s\-]*\}\}/,
8
greedy: true,
9
alias: "comment",
10
inside: {
@@ -15,7 +15,7 @@ const lang = "go-template"
15
16
// Regular Go template expressions {{ ... }}
17
"go-template-variable": {
18
- pattern: /\{\{(?!\/\*)[\s\S]+?\}\}/,
+ pattern: /\{\{[\s\-]*(?!\/\*)[\s\S]+?[\s\-]*\}\}/,
19
20
alias: "variable",
21
0 commit comments