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:
parent
ce89f213a8
commit
8d50557979
@ -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 == '_' || c >= 0x80)
|
if(isalnum(c) || c == '_' || c >= 0x80 || c == '$')
|
||||||
continue;
|
continue;
|
||||||
unget(c);
|
unget(c);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user