diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-09-01 18:49:10 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-09-01 18:54:03 -0700 |
| commit | 418d09e547a021ad4853680f7efc3efc8774054c (patch) | |
| tree | b6cd0c22529d90105a7cc1d87fde5504f31031f5 /src/comp/syntax/parse | |
| parent | b4b81117ce3713599b48d2168bf10e0225f94819 (diff) | |
| download | rust-418d09e547a021ad4853680f7efc3efc8774054c.tar.gz rust-418d09e547a021ad4853680f7efc3efc8774054c.zip | |
Convert all uses of #ifmt to #fmt. Issue #855
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/lexer.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs index 57720422306..e479377f3d7 100644 --- a/src/comp/syntax/parse/lexer.rs +++ b/src/comp/syntax/parse/lexer.rs @@ -325,7 +325,7 @@ fn scan_numeric_escape(rdr: &reader, n_hex_digits: uint) -> char { rdr.bump(); if !is_hex_digit(n) { rdr.err( - #ifmt["illegal numeric character escape: %d", n as int]); + #fmt["illegal numeric character escape: %d", n as int]); fail; } accum_int *= 16; @@ -469,7 +469,7 @@ fn next_token_inner(rdr: &reader) -> token::token { 'U' { c2 = scan_numeric_escape(rdr, 8u); } c2 { rdr.err( - #ifmt["unknown character escape: %d", + #fmt["unknown character escape: %d", c2 as int]); fail; } @@ -510,7 +510,7 @@ fn next_token_inner(rdr: &reader) -> token::token { } c2 { rdr.err( - #ifmt["unknown string escape: %d", + #fmt["unknown string escape: %d", c2 as int]); fail; } @@ -551,7 +551,7 @@ fn next_token_inner(rdr: &reader) -> token::token { '%' { ret binop(rdr, token::PERCENT); } c { rdr.err( - #ifmt["unkown start of token: %d", c as int]); + #fmt["unkown start of token: %d", c as int]); fail; } } @@ -652,7 +652,7 @@ fn read_block_comment(rdr: &reader, code_to_the_left: bool) -> cmnt { let curr_line = ~"/*"; let level: int = 1; while level > 0 { - log #ifmt["=== block comment level %d", level]; + log #fmt["=== block comment level %d", level]; if rdr.is_eof() { rdr.err(~"unterminated block comment"); fail; } if rdr.curr() == '\n' { trim_whitespace_prefix_and_push_line(lines, curr_line, col); |
