version: allow only TOKEN_LETTER after a digit

cute-signatures
Natanael Copa 2009-04-03 21:42:15 +02:00
parent 8fb4f6d17c
commit d9879b72d5
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ static void next_token(int *type, apk_blob_t *blob)
if (blob->len == 0 || blob->ptr[0] == 0) {
n = TOKEN_END;
} else if (islower(blob->ptr[0])) {
} else if (*type == TOKEN_DIGIT && islower(blob->ptr[0])) {
n = TOKEN_LETTER;
} else if (*type == TOKEN_SUFFIX && isdigit(blob->ptr[0])) {
n = TOKEN_SUFFIX_NO;