From d3e964e44729f14e8b6114eec4cace2bca051e2e Mon Sep 17 00:00:00 2001 From: Ciro Date: Mon, 26 Sep 2016 10:17:05 +0200 Subject: [PATCH] fix #12 for those who want support custom delimiters (e.g., use instead of <% %>) --- grammars/javascript template.cson | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/grammars/javascript template.cson b/grammars/javascript template.cson index e0c8435..5e35502 100644 --- a/grammars/javascript template.cson +++ b/grammars/javascript template.cson @@ -1,27 +1,27 @@ 'fileTypes': [ 'ejs' ] -'name': 'JavaScript Template' +'name': 'EJS' 'foldingStartMarker': '(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|)\n\t\t|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n\t\t)' 'foldingStopMarker': '(?x)\n\t\t(\n\t\t|^\\s*-->\n\t\t|(^|\\s)\\}\n\t\t)' 'patterns': [ { - 'begin': '<%#' + 'begin': '<(%|\\?)#' 'beginCaptures': '0': 'name': 'punctuation.definition.comment.begin.embedded.js' - 'end': '%>' + 'end': '(%|\\?)>' 'endCaptures': '0': 'name': 'punctuation.definition.comment.end.embedded.js' 'name': 'comment.block.embedded.js' } { - 'begin': '<%(%=|==|=:|=|)?' + 'begin': '<(%|\\?)(%=|==|=:|=|)?' 'captures': '0': 'name': 'punctuation.section.embedded.js' - 'end': '%>' + 'end': '(%|\\?)>' 'name': 'source.js.embedded.html' 'patterns': [ {