Skip to content

Commit

Permalink
RT# 69026: PPI docs mention PPI::Token::Bareword, but it does not exist
Browse files Browse the repository at this point in the history
The PPI docs showed an example tree structure supposedly generated by
parsing some Perl document, but the example had gotten out of synch with
reality, showing two element types that don't actually exist.

This commit fixes that by replacing the erroneous element classes with
those actually parsed.
  • Loading branch information
wchristian committed Dec 10, 2013
1 parent e0e4381 commit 45968ef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/PPI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ via the included L<PPI::Dumper>).
PPI::Document
PPI::Token::Comment '#!/usr/bin/perl\n'
PPI::Token::Whitespace '\n'
PPI::Statement::Expression
PPI::Token::Bareword 'print'
PPI::Statement
PPI::Token::Word 'print'
PPI::Structure::List ( ... )
PPI::Token::Whitespace ' '
PPI::Statement::Expression
Expand All @@ -551,8 +551,8 @@ via the included L<PPI::Dumper>).
PPI::Token::Structure ';'
PPI::Token::Whitespace '\n'
PPI::Token::Whitespace '\n'
PPI::Statement::Expression
PPI::Token::Bareword 'exit'
PPI::Statement
PPI::Token::Word 'exit'
PPI::Structure::List ( ... )
PPI::Token::Structure ';'
PPI::Token::Whitespace '\n'
Expand All @@ -568,14 +568,14 @@ whitespace. Here it is again, sans the distracting whitespace tokens.
PPI::Document
PPI::Token::Comment '#!/usr/bin/perl\n'
PPI::Statement::Expression
PPI::Token::Bareword 'print'
PPI::Statement
PPI::Token::Word 'print'
PPI::Structure::List ( ... )
PPI::Statement::Expression
PPI::Token::Quote::Double '"Hello World!"'
PPI::Token::Structure ';'
PPI::Statement::Expression
PPI::Token::Bareword 'exit'
PPI::Statement
PPI::Token::Word 'exit'
PPI::Structure::List ( ... )
PPI::Token::Structure ';'
Expand Down

0 comments on commit 45968ef

Please sign in to comment.