mirror of
https://github.com/golang/go
synced 2024-11-21 20:04: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:
parent
ce89f213a8
commit
8d50557979
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user