ruby-formatter/rufo

Quoted keys break parsing

TranquilMarmot opened this issue · 1 comments

Trying to run rufo against:

broken = {
    :'Some-Key' => 'Breaks Parsing'
}

Causes it to break with:

Rufo::Bug: unexpected node: string_content at [[2, 6], :on_tstring_content, "Some-Key", #<Ripper::Lexer::State: EXPR_FNAME>] at [[2, 6], :on_tstring_content, "Some-Key", #<Ripper::Lexer::State: EXPR_FNAME>]

@TranquilMarmot This is working for me on the latest version. I suspect that it was related to one of the other bugs that was fixed.

Please reopen this if it is still a problem.