syntax: Tidy up parsing the new attribute syntax

This commit is contained in:
Alex Crichton 2014-03-20 11:21:17 -07:00
parent 4e00cf6134
commit 84a91b8603
14 changed files with 56 additions and 54 deletions

View file

@ -10,5 +10,5 @@
fn main() {}
#![lang(foo)] //~ ERROR An inner attribute was not permitted in this context.
fn foo() {}
#![lang(foo)] //~ ERROR an inner attribute is not permitted in this context
fn foo() {}

View file

@ -8,4 +8,4 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
# //~ ERROR 11:1: 11:2 error: expected item
# //~ ERROR 11:1: 11:2 error: expected `[` but found `<eof>`

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern:expected item
// error-pattern:expected `[` but found `~`
mod blade_runner {
#~[doc(
brief = "Blade Runner is probably the best movie ever",