seattlerb/ruby_parser — pull request #156 by presidentbeef (2014-03-27 07:56:54+00:00)
Title: New line escape character interpreted as a new lines

It seems that literal new lines inside a string and the new line escape character are being treated the same.

```
2.1.1 :001 > require 'ruby_parser'
=> true
2.1.1 :002 > input = 'a("\n", true)'
=> "a(\"\\n\", true)"
2.1.1 :003 > puts input
a("\n", true)
=> nil
2.1.1 :004 > sexp = RubyParser.new.parse input
"\n"
1
=> s(:call, nil, :a, s(:str, "\n"), s(:true))
2.1.1 :005 > puts sexp[3]
str

=> nil
2.1.1 :006 > sexp[4]
=> s(:true)
2.1.1 :007 > sexp[4].line
=> 2
```