Issue #712 new

better functions and methods handling in CoffeeScript lexer

Anonymous created an issue

Functions with Fat arrow ( => ) ar not supported, a simple copy and paste from the slim arrow regex solved that:

"([^()])\s=>"

Object methods (see ex. below) need implementation {{{

!coffeescript

methodA:->
methodB:=>
methodC:()=>
methodD:()->
methodE:(a,b)->
methodF:(c,d)->

}}} This regex works in sublime text searchfield but not in pygmentize. maybe someone who isn't a total regex noob like me can fix it {{{

!regex

\w+(?=(:|=)(->|=>|(*.[-|=])) }}}

Comments (2)

  1. Log in to comment