Details
Description
As I understand the guide on this subject, AFTER, and any other such condition, should limit its search for annotations of the passed types to the window defined by the current scope. Hence, if used within a BLOCK, AFTER should disregard any annotations before (and after, for that matter) the window given by the matched annotation in the block's head. However, the AnnotationIndex iterator used in AfterCondition.check to find annotations of the given type is apparently not meant to be used in that way (it probably also ignores type visibility, but I didn't check this).
Example:
- Text (a bit strange, I know...):
This is just a 6 6 demo file. Now AND then... We'll see...., Mouse House!? You can drag and drop your own Files (:) to the editor in the middle of the page ().
- Script:
DECLARE NamedEntity, Stwr, IEEntity, Paragraph; "demo"{-> NamedEntity}; ("Mouse" # "drag") {-> Paragraph}; // test within block BLOCK (after) Paragraph{} { CW {AFTER(NamedEntity) -> Stwr}; }
- Marked annotations (of type Stwr only):
Mouse, House, You
- Expected (of type Stwr):
<None>
Regards,
Michael
Attachments
Issue Links
- links to