Commit 5de60964 authored by Russ Cox's avatar Russ Cox

allow runes >= 0x80 in symbols in #pragmas

R=ken
OCL=34975
CL=34975
parent a4d09c2a
......@@ -55,7 +55,7 @@ getsym(void)
char *cp;
c = getnsc();
if(!isalpha(c) && c != '_') {
if(!isalpha(c) && c != '_' && c < 0x80) {
unget(c);
return S;
}
......@@ -63,7 +63,7 @@ getsym(void)
if(cp <= symb+NSYMB-4)
*cp++ = c;
c = getc();
if(isalnum(c) || c == '_')
if(isalnum(c) || c == '_' || c >= 0x80)
continue;
unget(c);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment