Added "+" to list of liberty token characters

This commit is contained in:
Clifford Wolf 2014-01-14 18:56:29 +01:00
parent 54275c61ee
commit c1da7661a5
1 changed files with 2 additions and 2 deletions

View File

@ -87,11 +87,11 @@ int LibertyParer::lexer(std::string &str)
c = fgetc(f); c = fgetc(f);
} while (c == ' ' || c == '\t' || c == '\r'); } while (c == ' ' || c == '\t' || c == '\r');
if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '.') { if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '+' || c == '.') {
str = c; str = c;
while (1) { while (1) {
c = fgetc(f); c = fgetc(f);
if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '.') if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '+' || c == '.')
str += c; str += c;
else else
break; break;