seattlerb/ruby_parser — Issue #20: Broken nesting parsing in tokadd_string
Author: adambeynon
Created: 2011-10-09 20:48:23+00:00
State: open

Various parse issues are present in `tokadd_string`. Simple example, this parses:

```ruby
%Q(
{
#{yield `baz`};
}
)
```

but this doesnt:

```ruby
%Q{
{
#{yield `baz`};
}
}
```

The resulting error is that it is getting to the EOF without closing the string:

```
SyntaxError for _opal/test2.rb: unterminated string meets end of file. near line 1: ""
done
```

Observing the tokens gathered in `#advance` it looks like the "`" following "baz" is being parsed as string content.