aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/bc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index c5288102d..1e2ca8b83 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -2950,6 +2950,8 @@ static BC_STATUS zbc_lex_identifier(BcLex *l)
2950 continue; 2950 continue;
2951 match: 2951 match:
2952 // buf starts with keyword bc_lex_kws[i] 2952 // buf starts with keyword bc_lex_kws[i]
2953 if (isalnum(buf[j]) || buf[j]=='_')
2954 continue; // "ifz" does not match "if" keyword, "if." does
2953 l->t.t = BC_LEX_KEY_1st_keyword + i; 2955 l->t.t = BC_LEX_KEY_1st_keyword + i;
2954 if (!bc_lex_kws_POSIX(i)) { 2956 if (!bc_lex_kws_POSIX(i)) {
2955 s = bc_posix_error_fmt("%sthe '%.8s' keyword", "POSIX does not allow ", bc_lex_kws[i].name8); 2957 s = bc_posix_error_fmt("%sthe '%.8s' keyword", "POSIX does not allow ", bc_lex_kws[i].name8);