Perl-Critic/PPI

for (;<$foo>;) misparsed

Closed this issue · 1 comments

In the C-style for loop, <$foo> in the middle argument is misparsed as two operators surrounding a token rather than a readline quotelike. <FOO> as well.

  PPI::Statement::Compound
    PPI::Token::Word    'for'
    PPI::Token::Whitespace      ' '
    PPI::Structure::For         ( ... )
      PPI::Statement::Null
        PPI::Token::Structure   ';'
      PPI::Statement
        PPI::Token::Operator    '<'
        PPI::Token::Word        'DATA'
        PPI::Token::Operator    '>'
        PPI::Token::Structure   ';'
    PPI::Token::Whitespace      ' '
    PPI::Structure::Block       { ... }