Skip to content

Commit 3c42cc6

Browse files
committed
---
yaml --- r: 11599 b: refs/heads/master c: 9228947 h: refs/heads/master i: 11597: f65dc14 11595: 48bf0e6 11591: 2f90444 11583: 34fa844 v: v3
1 parent 8c7a97e commit 3c42cc6

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: fdc5b53c6edb9c4ff564fe440a84c804adf9a194
2+
refs/heads/master: 9228947fe15af96593abf4745d91802b56c205e8
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/comp/syntax/parse/lexer.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,15 @@ fn next_token(rdr: reader) -> {tok: token::token, chpos: uint, bpos: uint} {
307307
fn next_token_inner(rdr: reader) -> token::token {
308308
let accum_str = "";
309309
let c = rdr.curr;
310-
if char::is_XID_start(c) || c == '_' {
311-
while char::is_XID_continue(c) {
310+
if (c >= 'a' && c <= 'z')
311+
|| (c >= 'A' && c <= 'Z')
312+
|| c == '_'
313+
|| (c > 'z' && char::is_XID_start(c)) {
314+
while (c >= 'a' && c <= 'z')
315+
|| (c >= 'A' && c <= 'Z')
316+
|| (c >= '0' && c <= '9')
317+
|| c == '_'
318+
|| (c > 'z' && char::is_XID_continue(c)) {
312319
str::push_char(accum_str, c);
313320
rdr.bump();
314321
c = rdr.curr;

0 commit comments

Comments
 (0)