On 15/2/2006, at 5:48, Tim Lucas wrote:
One question though: how do use the repository item in the main syntax, rather than repeating the pattern def again.
Just do: include = "#«rule_name»"; and it includes the rule in the main syntax.
I've tried various combinations, but could only get this to work: [...]
Try this:
patterns = ( { include = '#comment'; }, ... ); repository = { comment = { name = 'comment.block.html'; begin = '<!---'; end = '--->'; patterns = ( { include = '#comment'; } ); }; };