krzkaczor / SwiftAST

MIT License
5 stars 0 forks source link

Improve semicolon inference #23

Open krzkaczor opened 10 years ago

krzkaczor commented 10 years ago

Currently used voodoo-technics are placed in lexerhelper.js file. To cut a long story short now we are disabling matching newline (NL token) after some 'special' tokens like semicolon, left curly bracket (LCBRAC), in keyword or another new line. It works for simple cases and allows to write code which looks nicer but it is not perfect.