Skip to content

Tokens not correct for percent array in RubyParser #1055

Description

@peter50216
> require 'yard'
> YARD::Parser::Ruby::RubyParser.new('%w(1 2)', nil).parse.tokens
=> [[:qwords_beg, "%w(", [1, 0]], [:tstring_content, "1", [1, 3]], [:words_sep, ")", [1, 6]]]

Using YARD version 0.9.7
The 2 part is missing.
Seems to be related to the fix in c9c9c0a.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions