Allowing wildcards or have VariableStart in syn file
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 1
- Joined: Fri Aug 04, 2006 9:06 pm
Allowing wildcards or have VariableStart in syn file
I think that a small, but great addition to the way syn files work is to add a VariableStart, VariableEnd variables in the [Syntax] section of the syn files. This would allow those languages that have a special character/delimeter for variables to be able to have syntax highlighting for those characters. For example for Perl, VariableStart = $ (and VariableEnd would be empty, not included, or just be a space) and would allow all variables to by highlighted to a unique color. You may also want to have a VariableAltStart, VariableAltEnd just in case there are 2 delimeters/characters for variables. For example file handlers in perl are signfied by <HANDLER> and could be seen as another variable. Another work around for this would be allow for wildcards in the syn files. That way variables could be defined. For example in Perl you could add $* and <*> and wildcards would only take into consideration alphanumeric characters and possibly a few others (like underscore). It just seems like a small addition that would make syn file creation more power and flexible than it is now.