seattlerb/ruby_parser — Issue #34: here doc support?
Author: bwlang
Created: 2012-03-07 03:10:54+00:00
State: open

looks like you're trying to deal with my here doc...
but not succeeding.

did I do something odd?

```ruby
def template_details
<<-DOC
Genomic: #{ranged_param_details(:genomic_template_ngul, "ng/µL")},
Simple: #{ranged_param_details(:simple_template_ngul, "ng/µL")}
DOC
end
```
```sh
flog test.rb

ERROR: parsing ruby file test.rb
ERROR! Aborting. You may want to run with --continue.
/Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/ruby_parser-2.3.1/lib/ruby_lexer.rb:395:in `rb_compile_error': can't match /[ \t]*DOC(\r?\n|\z)/ anywhere in . near line 2: "" (SyntaxError)
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/ruby_parser-2.3.1/lib/ruby_lexer.rb:146:in `heredoc'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/ruby_parser-2.3.1/lib/ruby_lexer.rb:1300:in `yylex_string'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/ruby_parser-2.3.1/lib/ruby_lexer.rb:642:in `yylex'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/ruby_parser-2.3.1/lib/ruby_lexer.rb:68:in `advance'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:713:in `next_token'
from /Users/langhorst/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/racc/parser.rb:99:in `_racc_do_parse_c'
from /Users/langhorst/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/racc/parser.rb:99:in `do_parse'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:750:in `process'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/flog-2.5.3/lib/flog.rb:241:in `block in flog'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/flog-2.5.3/lib/flog.rb:235:in `each'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/flog-2.5.3/lib/flog.rb:235:in `flog'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/gems/flog-2.5.3/bin/flog:13:in `'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/bin/flog:21:in `load'
from /Users/langhorst/.rvm/gems/ruby-1.9.2-p180/bin/flog:21:in `

'
```