Yes, that is correct. If I explain a bit, it may make my intentions clearer. What I am writing is a syntax file the does "rainbow" code colouring for different code-blocks as well as different bracket levels. It's been complex, but it almost works. This is one of the last issues I have to resolve.
* http://vicwebster.net/images/screen-code.gif Here is a screenshot * demonstrating how it looks at the moment. The problem is, that if the if-statements (or for/try/catch/whatever-statements) are only one-liners, this will screw everything up, as the highlighting will be looking for an opening { symbol. I will experiment with your syntax match idea. Thanks very much for helping. -- View this message in context: http://vim.1045645.n5.nabble.com/Help-with-VIM-syntax-region-regex-please-tp5113772p5115512.html Sent from the Vim - General mailing list archive at Nabble.com. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
