Fix pass-through of '=' and add a test for it.

Previously '=' was not included in our PUNCTUATION regeular expression,
but it *was* excldued from our OTHER regular expression, so we were
getting the default (and hamful) lex action of just printing it.

The test we add here is named "punctuator" with the idea that we can
extend it as needed for other punctuator testing.
This commit is contained in:
Carl Worth
2010-05-29 05:07:24 -07:00
parent 681afbc855
commit 631016946c
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -426,6 +426,7 @@ operator:
| OR { $$ = OR; }
| ';' { $$ = ';'; }
| ',' { $$ = ','; }
| '=' { $$ = '='; }
| PASTE { $$ = PASTE; }
| DEFINED { $$ = DEFINED; }
;