There is a missing rule for simple regular expressions in the parser Here is my proposal for a better rule for regular expressions: ``` javascript terminal REGEX: '///' -> '///' | '/' ( (!('/'|'\\') | ('\\' !('\n' | '\r'))) ('\\' !('\n' | '\r') | !('\\'|"'"))*)? '/'; ``` the github syntax highlighter does coffeesctipt highlighting of regular expressions correctly: ``` coffee x=/'/ y=/// ' /// y=/\Yaaaa/ ```
Activity
scharf commentedon Jul 18, 2013
I just fixed the rule -- there was a problem with //\ because the first character was not seen as quote