//! Parsing does not happen at runtime: structures of `std::fmt::rt` are
//! generated instead.
-#![crate_id = "fmt_macros#0.11.0"] // NOTE: remove after stage0c
#![crate_name = "fmt_macros"]
#![experimental]
#![license = "MIT/ASL2"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![feature(macro_rules, globs)]
-#![allow(unused_attribute)] // NOTE: remove after stage0
use std::char;
use std::str;
None => {
let tmp = self.cur.clone();
match self.word() {
- word if word.len() > 0 && self.consume('$') => {
- CountIsName(word)
+ word if word.len() > 0 => {
+ if self.consume('$') {
+ CountIsName(word)
+ } else {
+ self.cur = tmp;
+ CountImplied
+ }
}
_ => {
self.cur = tmp;