summaryrefslogtreecommitdiffstats
path: root/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.y b/parser.y
index 3bc6253a..a3154201 100644
--- a/parser.y
+++ b/parser.y
@@ -469,7 +469,9 @@ regbranch : regterm { $$ = cons($1, nil); }
;
regterm : '[' regclass ']' { $$ = cons(set_s, $2); }
+ | '[' ']' { $$ = cons(set_s, nil); }
| '[' '^' regclass ']' { $$ = cons(cset_s, $3); }
+ | '[' '^' ']' { $$ = wild_s; }
| '.' { $$ = wild_s; }
| '^' { $$ = chr('^'); }
| ']' { $$ = chr(']'); }