Skip to content
Snippets Groups Projects
Commit 86028bba authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Add match(m, ann_name) in addition to match(m1, m2, ann_name).

parent 13ef1f7e
Branches
No related merge requests found
......@@ -1950,16 +1950,21 @@ match_mark_action
}
: "mark" LPAREN
match_from = match_fit[tagset, vars] COMMA
match_to = match_fit[tagset, vars] COMMA
(match_to = match_fit[tagset, vars] COMMA) ?
annotation_name : STRING
RPAREN {
m_act.reset(
new MarkMatch(
match_from,
match_to,
((antlr::Token*)annotation_name)->getText()
)
);
if (!match_to) {
m_act.reset(
new MarkMatch(
match_from,
((antlr::Token*)annotation_name)->getText()));
} else {
m_act.reset(
new MarkMatch(
match_from,
match_to,
((antlr::Token*)annotation_name)->getText()));
}
}
;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment