aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/parser.c b/parser.c
index c4cbab14..b0aef8e3 100644
--- a/parser.c
+++ b/parser.c
@@ -2684,10 +2684,11 @@ static int parser_test_argument( const wchar_t *arg, int babble, int offset )
default:
{
- if( !iswalnum(*(pos+1)) &&
- *(pos+1)!=L'_' &&
- *(pos+1)!=VARIABLE_EXPAND &&
- *(pos+1)!=VARIABLE_EXPAND_SINGLE )
+ wchar_t n = *(pos+1);
+
+ if( n != VARIABLE_EXPAND &&
+ n != VARIABLE_EXPAND_SINGLE &&
+ !wcsvarchr(n) )
{
err=1;
if( babble )