goruby icon indicating copy to clipboard operation
goruby copied to clipboard

no prefix parse function for type NEWLINE found

Open mpictor opened this issue 7 years ago • 0 comments

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go 1.10.3

What operating system and processor architecture are you using (go env)?

linux / amd64

What version of GoRuby are you using (git show -s --format=%H or goruby -version)?

HEAD

What did you do?

go run goruby/main.go -e "$(printf "d w{}.o,\n w{}.o")" (note the use of bash's printf to insert a newline into the expression)

What did you expect to see?

something different than what I did see :)

What did you see instead?

syntax error, Parsing errors:
        1:8: no prefix parse function for type NEWLINE found

exit status 1

Failing expression derived from something like this (part of a rakefile):

dll :dllname,
     cdefine('DLLNAME_EXPORTS'),
     installer { uuid('blah') }.only_if(:cond),
     installer { uuid('blaa') }.only_if(:cond2),
     otherstuff

mpictor avatar Dec 08 '18 01:12 mpictor