textmate / ruby.tmbundle

TextMate support for Ruby
178 stars 91 forks source link

Ruby syntax highlighter fails when parameter defaults contain a nested Hash #113

Closed aeschli closed 7 years ago

aeschli commented 7 years ago

From @nelseric on July 31, 2017 0:22

Steps to Reproduce:

  1. Create a new ruby file with the contents

    def complicated_params(options = {
    column_mapping: {
    'account_number' => 'acct_no',
    'mailing_address' => 'mail_addr_line_1',
    'customer_name' => ['customer_name', 'company_name'],
    },
    })
    
    pp options
    end

    image

Reproduces without extensions: Yes

Copied from original issue: Microsoft/vscode#31738

infininight commented 7 years ago

Fixed, thanks!