diff --git a/lib/ace/mode/html_highlight_rules.js b/lib/ace/mode/html_highlight_rules.js index 04fe428f..dcaa329f 100644 --- a/lib/ace/mode/html_highlight_rules.js +++ b/lib/ace/mode/html_highlight_rules.js @@ -63,11 +63,11 @@ var HtmlHighlightRules = function() { next : "comment" }, { token : "meta.tag", - regex : "<(?=\s*script)", + regex : "<(?=\s*script\\b)", next : "script" }, { token : "meta.tag", - regex : "<(?=\s*style)", + regex : "<(?=\s*style\\b)", next : "css" }, { token : "meta.tag", // opening tag