From 42cf96c6d24bb21ad076ac81d37211f2c389057a Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sun, 25 Aug 2013 11:18:59 +0000 Subject: [PATCH] Fix issue #49 --- stdx/d/lexer.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdx/d/lexer.d b/stdx/d/lexer.d index 26615ce..e96a6ae 100644 --- a/stdx/d/lexer.d +++ b/stdx/d/lexer.d @@ -1660,7 +1660,7 @@ L_advance: size_t idx = 0; while (!isEoF()) { - if (isAlpha(src.front)) + if (std.ascii.isAlpha(src.front)) { buffer[idx++] = src.front; if(idx == buffer.length) // way over maximum length @@ -1674,8 +1674,8 @@ L_advance: } else { - errorMessage("Invalid character entity"); - return idx; + errorMessage("Invalid character entity"); + return idx; } } //TODO: avoid looking up as UTF string, use raw bytes