Re: RUTA : ForEach block - ignoring Annotations

2021-05-05 Thread Peter Klügl
Hi,   yes, the FOREACH block will skip the second line because it starts with a whitespace. All normal matching condition will ignore it, too. Ruta applies a coverage based (in)visibility concept and this implementation need to able to handle overlapping annotations in a symmetric way. In

RUTA : ForEach block - ignoring Annotations

2021-05-04 Thread Michael Bach
Hi! I’m struggling a bit with the usage of ForEach blocks. I’ve written a few rules for structure looking like this: Document{-> RETAINTYPE(BREAK)}; DECLARE BR; "\\r?\\n" -> BR; DECLARE Line; "[^\\r\\n]+" -> Line; Line{->SHIFT(Line,1,2)} BR; DECLARE Empty_Line; "\\r?\\n[ ]*(\\r?\\n)" ->