in html "style" and "script" should match only exact word
This commit is contained in:
parent
ab4ad37e5a
commit
a424fb5da5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue