Page 1 of 1

problem with syntax definitions

Posted: Fri Jul 06, 2001 8:38 am
by Simon Christian
I'm trying to write a syntax definition file for Velocity templates. These incorporate standard html, and a bunch of keywords which start with # e.g. #set #foreach

Some of the keywords are followed by a bracket ( something ), some not. Is there any way to match on these keywords at the same time as html tags? I though there might be some mileage with the [Preprocessor keywords] section but no luck so far.

TIA, simon

Re: problem with syntax definitions

Posted: Mon Aug 20, 2001 9:56 pm
by Chris
I had the same idea (creating a velocity syntax file)...

I can not even get the file to use the BracketChars = xxxxx properly. For some reason, the brackets do not get highlighted. I started with an xml syntax file that worked properly (and so did the brackets). Once I copied it to velocity.syn, brackets no longer highlighted.