Hi, In Ruta 2.0.2-SNAPSHOT a token with begin offset 0 and end offset 2 comes before a token with begin offset 0 and end offset 0. The token order is not as I expected. Thus in my case, SourceDocumentAnnotation was the second token in the token sequence and the rule didn't match. It took me some time to find that out. The end offset of SourceDocumentAnnotation should better be the length of the text. How is the token ordering defined?
Cheers, Armin