rline: stop highlighting numbers in the middle of words

This commit is contained in:
K. Lange 2021-06-19 16:46:46 +09:00
parent 0c10d152ef
commit 372b20209c
1 changed files with 1 additions and 1 deletions

View File

@ -872,7 +872,7 @@ int syn_esh_calculate(struct syntax_state * state) {
return 0;
} else if (find_keywords(state, shell_commands, FLAG_KEYWORD, esh_keyword_qualifier)) {
return 0;
} else if (isdigit(charat())) {
} else if (!c_keyword_qualifier(lastchar()) && isdigit(charat())) {
while (isdigit(charat())) paint(1, FLAG_NUMERAL);
return 0;
} else if (charat() != -1) {