ruby-parser.js
ruby-parser.js copied to clipboard
Make lexer track lexeme locations
The only module that needs locations is the source map generator. The source-map
node module needs only the starting point of a lexeme in a [line, column]
format, it is able to calculate the ending point itself on the final step of SM generation. So we can avoid all the ending logic to bloat our code.