Merge pull request #452 from vkbansal/handlebars-fix make comment non-greedy in handlebars
diff --git a/components/prism-handlebars.js b/components/prism-handlebars.js
index 0971794..031896b 100644
--- a/components/prism-handlebars.js
+++ b/components/prism-handlebars.js
@@ -35,7 +35,7 @@
// surround markup
Prism.languages.insertBefore('handlebars', 'tag', {
'handlebars-comment': {
- pattern: /\{\{![\w\W]*\}\}/g,
+ pattern: /\{\{![\w\W]*?\}\}/g,
alias: ['handlebars','comment']
}
});
@@ -79,4 +79,4 @@
env.element.innerHTML = env.highlightedCode;
});
-}(Prism));
\ No newline at end of file
+}(Prism));