about summary refs log tree commit diff
path: root/src/libsyntax/parse/attr.rs
diff options
context:
space:
mode:
authorPaul Stansifer <paul.stansifer@gmail.com>2012-05-21 10:45:56 -0700
committerPaul Stansifer <paul.stansifer@gmail.com>2012-06-15 12:41:41 -0700
commit473b1ec0a09db8aee9fde61a55cbe5074422c91f (patch)
tree168884b1cb6e5718aac4110ecc42f090ce28407c /src/libsyntax/parse/attr.rs
parentb6ed1de29e3092a061ed5f64ba560f6814b6d25a (diff)
downloadrust-473b1ec0a09db8aee9fde61a55cbe5074422c91f.tar.gz
rust-473b1ec0a09db8aee9fde61a55cbe5074422c91f.zip
Make token trees parseable.
Diffstat (limited to 'src/libsyntax/parse/attr.rs')
-rw-r--r--src/libsyntax/parse/attr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs
index cddf8de479b..dad180847ee 100644
--- a/src/libsyntax/parse/attr.rs
+++ b/src/libsyntax/parse/attr.rs
@@ -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)));