Hi Dirhael,
Sorry for the late reply.
You are right about that syntax issue. It was changed recently as I was convinced that an ; was always there after the values, and it's not.
There are certain limitations in some languages for syntax. It works quite ok for most languages, but on others there may be an issue and some "gymnastic" must have to be done.
I noticed some editors have "behind the scenes" helping stuff for syntax, I mean, additional hard coded code for some languages. Twistpad only uses the SDF files to make the syntax, and while i feel that way is more honest and easier to add new syntax's, on the other hand on some occasions it can be limited for more complex languages.
I could easily do a hard coded syntax highlighter for CSS which would work without any problem, but since Twistpad is not an CSS editor, and it's not a path I'd like to take, since Twistpad could end up with all syntax's hard coded and that is not at all what I had in mind. Some compromise has to be made although improvements to the syntax engine could and will be made.
Regular expressions are a possibility in the future, a version was implemented with regular expressions, but performance was a big issue, and that version was canceled, I have several other tests in standby for a syntax's to work with RE.
Anyway, back in this particular case what would you use if you could use an RE expression ? Without going deep into it i can just think of "}|;" which would not work anyway because the section would be stopped in the first ; it finds, and not on the one we want (the last one)
Your syntax seems to work properly, the only thing I would do , would be omitting the values section, you don't really need them, that was how the CSS syntax was some time ago.
I will update the CSS syntax for the next release to avoid this issue you mentioned. I will try to came with a solution on this particular problem.
Thanks,
André Santos Carthago Software Support
http://www.carthagosoft.net