Hi,

I have in my after\syntax directory a vhdl.vim file defined as below
+-----+
    syn sync fromstart
    set foldmethod=syntax

"syntax match vhdlEndIf "end\s\+if"
syn region vhdlFold
      \ start="\z(\<if\>\)"
      \ end="\<end\s\+\z1"
      \ fold transparent
      \ keepend

syn region vhdlEnt
      \ start="\z(\<entity\>\)"
      \ end="\<end\s\+\z1"
      \ fold transparent
      \ keepend

syn region vhdlFoooo
      \ start="\z(\<foo\>\)"
      \ end="\<end\s\+\z1"
      \ fold transparent
      \ keepend

+-----+

What I now see is that it works for my
a) if ... end if combination
b) foo ... end foo combination

but not for entity... end entity combination.

Why is that?
entity is a VHDL word, as well as if.
foo is a made up word.

Rgds,
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

Reply via email to