1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:44:44 -07:00

cc: allow $ as letter in pragma arguments

(Needed for Mac OS X symbol names.)

R=ken2
CC=golang-dev
https://golang.org/cl/3499041
This commit is contained in:
Russ Cox 2010-12-07 16:45:06 -05:00
parent ce89f213a8
commit 8d50557979

View File

@ -63,7 +63,7 @@ getsym(void)
if(cp <= symb+NSYMB-4)
*cp++ = c;
c = getc();
if(isalnum(c) || c == '_' || c >= 0x80)
if(isalnum(c) || c == '_' || c >= 0x80 || c == '$')
continue;
unget(c);
break;