Hi Christian Thanks, but that doesn't do it for me. I discovered that in a syn region the 'start value' is not allowed also in the 'end value'. So in ---> syn region myFold2 start="foo" end="end foo;" transparent fold the second foo is not allowed.
Is there a way to work around this? I'm trying to create folding parameters for VHDL. VHDL has a lot of such constructions. For example the "if statement" ends with "end if;" IF <some text> THEN .... END<one or more space char> IF<zero or more space char>; Question 1: Is this possible: let START_VALUE = "<some text or space char but not the word end,with a space char to separate it from> IF <some other text but not the word THEN> THEN <zero or more space char>" let END_VALUE = "<zero or more space characters> END <with one or more space char> IF <zero or more space char> ; <zero or more space char>" Question 2: if so, how to define this? Question 3: And can this then be to add something like this: syn region myFold2 start="START_VALUE" end="END_VALUE;" transparent fold This should then result in +--- x lines: IF <some text> THEN I'm trying to this in the syntax folding methode for VHDL. Best regards, Jeri -- 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
