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) ...@@ -55,7 +55,7 @@ getsym(void)
char *cp; char *cp;
c = getnsc(); c = getnsc();
if(!isalpha(c) && c != '_') { if(!isalpha(c) && c != '_' && c < 0x80) {
unget(c); unget(c);
return S; return S;
} }
...@@ -63,7 +63,7 @@ getsym(void) ...@@ -63,7 +63,7 @@ getsym(void)
if(cp <= symb+NSYMB-4) if(cp <= symb+NSYMB-4)
*cp++ = c; *cp++ = c;
c = getc(); c = getc();
if(isalnum(c) || c == '_') if(isalnum(c) || c == '_' || c >= 0x80)
continue; continue;
unget(c); unget(c);
break; 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