[
https://issues.apache.org/jira/browse/UIMA-2937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13665186#comment-13665186
]
Peter Klügl commented on UIMA-2937:
-----------------------------------
test case:
document:
{noformat}
a b c x b c x c
{noformat}
script:
{noformat}
PACKAGE uima.ruta.tests;
DECLARE T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15;
"a"-> T1;
"b"-> T2;
"c"-> T3;
(T1? T2 T3){-> T4};
T1? T2 T3{-> MARK(T5,1,2,3)};
("a"? "b" "c"){->T6};
"a"? "b" "c"{-> MARK(T7,1,2,3)};
(T1? T2? T3){-> T8};
T1? T2? T3{-> MARK(T9,1,2,3)};
("a"? "b"? "c"){->T10};
"a"? "b"? "c"{-> MARK(T11,1,2,3)};
((T1? T2)? T3){-> T12};
(T1? T2)? T3{-> MARK(T13,1,2,3)};
(("a"? "b")? "c"){->T14};
("a"? "b")? "c"{-> MARK(T15,1,2,3)};
{noformat}
> Leading optional literal matching conditions in Ruta
> ----------------------------------------------------
>
> Key: UIMA-2937
> URL: https://issues.apache.org/jira/browse/UIMA-2937
> Project: UIMA
> Issue Type: Bug
> Components: ruta
> Affects Versions: 2.0.1ruta
> Reporter: Peter Klügl
> Assignee: Peter Klügl
> Fix For: 2.0.2ruta
>
>
> Armin Wegner reported:
> In Ruta 2.0.2-SNAPSHOT, rules with an optional first element do not work. The
> optional part seems to be mandatory. Using
> DECLARE Test;
> "a"? "b" "c"{->MARK(Test, 1, 3)};
> on
> a b c x b c
> marks "a b c" (0, 5) but not "b c" (8, 11).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira