/documentation/coffee/heregexes.coffee

http://github.com/jashkenas/coffee-script · CoffeeScript · 9 lines · 9 code · 0 blank · 0 comment · 0 complexity · 9a0086bf49f19e8e018e4e38b7bda927 MD5 · raw file

  1. OPERATOR = /// ^ (
  2. ?: [-=]> # function
  3. | [-+*/%<>&|^!?=]= # compound assign / compare
  4. | >>>=? # zero-fill right shift
  5. | ([-+:])\1 # doubles
  6. | ([&|<>])\2=? # logic / shift
  7. | \?\. # soak access
  8. | \.{2,3} # range or splat
  9. ) ///