From d0709fea87e2c080b0f6d1f83e72c7fce8678937 Mon Sep 17 00:00:00 2001 From: Ryan Griffith Date: Mon, 22 Apr 2013 11:18:24 -0300 Subject: [PATCH] Improvement to HTML comments Fixed issue where HTML comments were not properly ending, causing all code after the start comment tag to appear commented out. --- lib/ace/mode/velocity_highlight_rules.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ace/mode/velocity_highlight_rules.js b/lib/ace/mode/velocity_highlight_rules.js index 8d2510e4..2227f769 100644 --- a/lib/ace/mode/velocity_highlight_rules.js +++ b/lib/ace/mode/velocity_highlight_rules.js @@ -133,6 +133,10 @@ var VelocityHighlightRules = function() { token : "comment.block", // closing comment regex : ".*?\\*#", next : "start" + }, { + token : "comment", // closing HTML comment + regex : ".*?-->", + next : "start" }, { token : "comment", // comment spanning whole line regex : ".+" @@ -229,4 +233,4 @@ var VelocityHighlightRules = function() { oop.inherits(VelocityHighlightRules, TextHighlightRules); exports.VelocityHighlightRules = VelocityHighlightRules; -}); \ No newline at end of file +});