in html "style" and "script" should match only exact word

This commit is contained in:
nightwing 2011-12-15 21:38:00 +04:00
commit a424fb5da5

View file

@ -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