Skip to content

Commit

Permalink
Match block comments inside script attributes
Browse files Browse the repository at this point in the history
Fixes #99.
  • Loading branch information
infininight committed Jan 28, 2019
1 parent 741e9e9 commit 0c3d5ee
Showing 1 changed file with 82 additions and 2 deletions.
84 changes: 82 additions & 2 deletions Syntaxes/HTML.plist
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,47 @@
</dict>
</dict>
<key>match</key>
<string>[^\n"]+</string>
<string>([^\n"/]|/(?![/*]))+</string>
</dict>
<dict>
<key>begin</key>
<string>//</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.js</string>
</dict>
</dict>
<key>end</key>
<string>(?=")|\n</string>
<key>name</key>
<string>comment.line.double-slash.js</string>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.begin.js</string>
</dict>
</dict>
<key>end</key>
<string>(?=")|\*/</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.end.js</string>
</dict>
</dict>
<key>name</key>
<string>comment.block.js</string>
</dict>
</array>
</dict>
Expand Down Expand Up @@ -407,7 +447,47 @@
</dict>
</dict>
<key>match</key>
<string>[^\n']+</string>
<string>([^\n'/]|/(?![/*]))+</string>
</dict>
<dict>
<key>begin</key>
<string>//</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.js</string>
</dict>
</dict>
<key>end</key>
<string>(?=')|\n</string>
<key>name</key>
<string>comment.line.double-slash.js</string>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.begin.js</string>
</dict>
</dict>
<key>end</key>
<string>(?=')|\*/</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.end.js</string>
</dict>
</dict>
<key>name</key>
<string>comment.block.js</string>
</dict>
</array>
</dict>
Expand Down

0 comments on commit 0c3d5ee

Please sign in to comment.