SPR-7100: '_' supported as first char of identifier

This commit is contained in:
Andy Clement
2010-04-16 21:10:23 +00:00
parent f6b56a591c
commit bf1a95c771
3 changed files with 14 additions and 0 deletions

View File

@@ -57,6 +57,9 @@ class Tokenizer {
case '+':
pushCharToken(TokenKind.PLUS);
break;
case '_': // the other way to start an identifier
lexIdentifier();
break;
case '-':
pushCharToken(TokenKind.MINUS);
break;