atom / language-coffee-script

CoffeeScript support in Atom
Other
59 stars 56 forks source link

Add support for splices #144

Closed winstliu closed 7 years ago

winstliu commented 7 years ago

Specifically, the .. and ... in these examples:

start   = numbers[0..2]
middle  = numbers[3...-2]
end     = numbers[-2..]
copy    = numbers[..]

.. is inclusive, ... is exclusive

Spawned from #103