If i have a subrule like the following:
.. (~']' ~']')* ...
will it only match an even number of characters?
If i have a subrule like the following:
.. (~']' ~']')* ...
will it only match an even number of characters?
(Assuming the dots are not meant as meta characters)
Not quite, it will match zero, or an even number of characters.
EDIT
To match a quote block, do something like this:
QUOTE
: '[[' (options {greedy=false;} : . )* ']]'
;
Assuming [[ some text here ]]
is a quote block.