diff --git a/Syntaxes/HTML.plist b/Syntaxes/HTML.plist index 211b080..228353f 100644 --- a/Syntaxes/HTML.plist +++ b/Syntaxes/HTML.plist @@ -356,7 +356,47 @@ match - [^\n"]+ + ([^\n"/]|/(?![/*]))+ + + + begin + // + beginCaptures + + 0 + + name + punctuation.definition.comment.js + + + end + (?=")|\n + name + comment.line.double-slash.js + + + begin + /\* + beginCaptures + + 0 + + name + punctuation.definition.comment.begin.js + + + end + (?=")|\*/ + endCaptures + + 0 + + name + punctuation.definition.comment.end.js + + + name + comment.block.js @@ -407,7 +447,47 @@ match - [^\n']+ + ([^\n'/]|/(?![/*]))+ + + + begin + // + beginCaptures + + 0 + + name + punctuation.definition.comment.js + + + end + (?=')|\n + name + comment.line.double-slash.js + + + begin + /\* + beginCaptures + + 0 + + name + punctuation.definition.comment.begin.js + + + end + (?=')|\*/ + endCaptures + + 0 + + name + punctuation.definition.comment.end.js + + + name + comment.block.js