diff options
author | Tor Egge <tegge@FreeBSD.org> | 2001-09-19 19:58:09 +0000 |
---|---|---|
committer | Tor Egge <tegge@FreeBSD.org> | 2001-09-19 19:58:09 +0000 |
commit | 5f2359b374679e0c2dd3ab45b99886a67fdba41d (patch) | |
tree | a605421ae04ed4467667415b02d901e742962560 /bin/sh | |
parent | 9c52cf578520c436a379b0c0edbc299d7c119c08 (diff) | |
download | src-5f2359b374679e0c2dd3ab45b99886a67fdba41d.tar.gz src-5f2359b374679e0c2dd3ab45b99886a67fdba41d.zip |
Adjust some type checks to include CTLQUOTEMARK in the range of
shell control characters.
Notes
Notes:
svn path=/head/; revision=83674
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/mksyntax.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/mksyntax.c b/bin/sh/mksyntax.c index aace57d1cea9..d4a1cd89d9d7 100644 --- a/bin/sh/mksyntax.c +++ b/bin/sh/mksyntax.c @@ -352,9 +352,9 @@ print(name) static char *macro[] = { "#define is_digit(c)\t((c >= 0 && is_type+SYNBASE)[c] & ISDIGIT)", - "#define is_alpha(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && isalpha((unsigned char) (c)))", - "#define is_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && ((c) == '_' || isalpha((unsigned char) (c))))", - "#define is_in_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && ((c) == '_' || isalnum((unsigned char) (c))))", + "#define is_alpha(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLQUOTEMARK) && isalpha((unsigned char) (c)))", + "#define is_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLQUOTEMARK) && ((c) == '_' || isalpha((unsigned char) (c))))", + "#define is_in_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLQUOTEMARK) && ((c) == '_' || isalnum((unsigned char) (c))))", "#define is_special(c)\t((is_type+SYNBASE)[c] & (ISSPECL|ISDIGIT))", NULL }; |