gkz / LiveScript

LiveScript is a language which compiles to JavaScript. It has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate. While LiveScript adds many features to assist in functional style programming, it also has many improvements for object oriented and imperative programming.
http://livescript.net
MIT License
2.31k stars 156 forks source link

lexer: handle words literals with more care #1041

Closed rhendric closed 6 years ago

rhendric commented 6 years ago

This fixes three related issues around words literals (<[ ]>) being mistaken for newlines or operators when their contents had the same values as those other token types.

Fixes #739, closes #808.


All but the most trivial tweaks to the lexer make me nervous. Will hold for two weeks, merging on or after April 16 if no feedback.