Lexer: Migrated ispunct to Lexer::isPunctuation

This commit is contained in:
Paul Beckingham
2015-04-16 23:52:43 -04:00
parent 3cbb2bb20f
commit 39fb45447b
6 changed files with 11 additions and 40 deletions

View File

@@ -299,8 +299,14 @@ bool Lexer::isBoundary (int left, int right)
////////////////////////////////////////////////////////////////////////////////
bool Lexer::isPunctuation (int c)
{
return c != '@' &&
ispunct (c);
return isprint (c) &&
c != ' ' &&
c != '@' &&
c != '#' &&
c != '$' &&
c != '_' &&
! isDigit (c) &&
! isAlpha (c);
}
////////////////////////////////////////////////////////////////////////////////