Skip to content
Snippets Groups Projects
Commit 6d229eac authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[demo/mustache] Recognize triple braces

parent b4678bad
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ CodeMirror.defineMode("mustache", function(config, parserConfig) {
if (stream.match("{{")) {
while ((ch = stream.next()) != null)
if (ch == "}" && stream.next() == "}") break;
stream.eat("}");
return "mustache";
}
while (stream.next() != null && !stream.match("{{", false)) {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment