From 685ba1845162b40e17ffe8e927705de4a19885d3 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 19 Apr 2015 20:05:25 +0400 Subject: [PATCH] fix #2452 . is a valid XML tagname character --- lib/ace/mode/html_highlight_rules.js | 4 ++-- lib/ace/mode/xml_highlight_rules.js | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/ace/mode/html_highlight_rules.js b/lib/ace/mode/html_highlight_rules.js index 9c9cc36f..4effa2aa 100644 --- a/lib/ace/mode/html_highlight_rules.js +++ b/lib/ace/mode/html_highlight_rules.js @@ -65,7 +65,7 @@ var HtmlHighlightRules = function() { include : "tag_whitespace" }, { token : "entity.other.attribute-name.xml", - regex : "[-_a-zA-Z0-9:]+" + regex : "[-_a-zA-Z0-9:.]+" }, { token : "keyword.operator.attribute-equals.xml", regex : "=", @@ -89,7 +89,7 @@ var HtmlHighlightRules = function() { return ["meta.tag.punctuation." + (start == "<" ? "" : "end-") + "tag-open.xml", "meta.tag" + (group ? "." + group : "") + ".tag-name.xml"]; }, - regex : "(