rline: stop highlighting numbers in the middle of words
This commit is contained in:
parent
0c10d152ef
commit
372b20209c
@ -872,7 +872,7 @@ int syn_esh_calculate(struct syntax_state * state) {
|
|||||||
return 0;
|
return 0;
|
||||||
} else if (find_keywords(state, shell_commands, FLAG_KEYWORD, esh_keyword_qualifier)) {
|
} else if (find_keywords(state, shell_commands, FLAG_KEYWORD, esh_keyword_qualifier)) {
|
||||||
return 0;
|
return 0;
|
||||||
} else if (isdigit(charat())) {
|
} else if (!c_keyword_qualifier(lastchar()) && isdigit(charat())) {
|
||||||
while (isdigit(charat())) paint(1, FLAG_NUMERAL);
|
while (isdigit(charat())) paint(1, FLAG_NUMERAL);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (charat() != -1) {
|
} else if (charat() != -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user