Make token trees parseable.

This commit is contained in:
Paul Stansifer
2012-05-21 10:45:56 -07:00
parent b6ed1de29e
commit 473b1ec0a0
8 changed files with 82 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ impl parser_attr for parser {
ret some(left([first_attr] + self.parse_outer_attributes()));
} else if !(self.look_ahead(1u) == token::LT
|| self.look_ahead(1u) == token::LBRACKET
|| self.look_ahead(1u) == token::POUND
|| expect_item_next) {
self.bump();
ret some(right(self.parse_syntax_ext_naked(lo)));