On 18/4/2006, at 22:28, Aparajita Fishman wrote:
[...] Is there any way to have the first and last lines of the fusedoc rule be parsed by text.xml?
Yes, use look-ahead and look-behind assertions in the begin/end patterns. E.g.:
fusedoc = { begin = '(?=^\s*<fusedoc )'; end = '(?<=</fusedoc>)'; patterns = ( { include = 'text.xml'; } ); }
This way, the patterns themselves will match zero characters.
Look-behind however can only be fixed width, so there is no way to ensure that ‘^\s*’ is in front of the end-tag.