Improved tokenizer to make it possible to have digits in a word
This commit is contained in:
parent
de80fc7b79
commit
138e361c54
|
@ -99,7 +99,7 @@ pac_tlist_s pac_tokenize_grammar(char *source, usz_t len_source)
|
||||||
++offset;
|
++offset;
|
||||||
subject = source[offset];
|
subject = source[offset];
|
||||||
|
|
||||||
if(!pac_rune_is_letter(subject) && (subject != '_'))
|
if(!pac_rune_is_letter(subject) && !pac_rune_is_digit(subject) && (subject != '_'))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue