Skip to content

Commit 320a247

Browse files
committed
fixes microsoft#499: syntax highlighting broken when divide symbol is not separated using space
1 parent 3a486b1 commit 320a247

4 files changed

Lines changed: 1397 additions & 779 deletions

File tree

extensions/coffeescript/syntaxes/CoffeeScript.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
</dict>
327327
<dict>
328328
<key>begin</key>
329-
<string>/(?![\s=/*+{}?])</string>
329+
<string>/(?![\s=/*+{}?])(?=.*/[igmy]{0,4})</string>
330330
<key>beginCaptures</key>
331331
<dict>
332332
<key>0</key>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
regex = /Hello (\d+) #{user}/g
2+
2 / 3
3+
2/3
4+
name="hello"
5+
test=/// #{name}
6+
7+
fancyRegExp = ///
8+
(\d+) # numbers
9+
(\w*) # letters
10+
$ # the end
11+
///

0 commit comments

Comments
 (0)