Skip to content

Commit 02e0c8d

Browse files
committed
refactoring
1 parent 9f99ae8 commit 02e0c8d

File tree

2 files changed

+191
-221
lines changed

2 files changed

+191
-221
lines changed

common/mik_parser.mly

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ let unclosed_error what startpos endpos =
5858
%%
5959

6060
main_match_case:
61+
| p = pattern EOF {
62+
let dollar = to_pcre_regex "$" $endpos(p) $endpos($2) in
63+
let loc = make_loc $startpos(p) $endpos($2) in
64+
simplify_seq ~loc [p; dollar]
65+
}
6166
| SLASH p = pattern SLASH EOF {
6267
let dollar = to_pcre_regex "$" $endpos(p) $endpos($3) in
6368
let loc = make_loc $startpos(p) $endpos($3) in

0 commit comments

Comments
 (0)