Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(760)

Unified Diff: src/cmd/gc/lex.c

Issue 1067042: code review 1067042: gc: bug267 (Closed)
Patch Set: code review 1067042: gc: bug267 Created 14 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/fixedbugs/bug267.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/gc/lex.c
===================================================================
--- a/src/cmd/gc/lex.c
+++ b/src/cmd/gc/lex.c
@@ -797,6 +797,7 @@
* i said it was clumsy.
*/
case '(':
+ case '[':
if(loophack || lstk != nil) {
h = malloc(sizeof *h);
h->v = loophack;
@@ -806,6 +807,7 @@
}
goto lx;
case ')':
+ case ']':
if(lstk != nil) {
h = lstk;
loophack = h->v;
« no previous file with comments | « no previous file | test/fixedbugs/bug267.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b