Skip to content

Commit 490fa9f

Browse files
committed
---
yaml --- r: 14605 b: refs/heads/try c: 9228947 h: refs/heads/master i: 14603: 67d4bfa v: v3
1 parent f70a362 commit 490fa9f

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
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: fdc5b53c6edb9c4ff564fe440a84c804adf9a194
5+
refs/heads/try: 9228947fe15af96593abf4745d91802b56c205e8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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)