On Sat, Aug 14, 2010 at 11:02 PM, Benjamin R. Haskell v...@benizi.com wrote:
You left out the second instruction...
:echo orig_syntax
:syn list vhdlStatement
The ':echo' gives you the original syntax entry for vhdlStatement.
The ':syn' command gives you the current entry.
(So you can
Hi Ben,
On Fri, Aug 13, 2010 at 8:45 PM, Benjamin R. Haskell v...@benizi.com wrote:
The attached file seems to do what you want, w.r.t. both the multiple
block keywords, and not modifying the original
$VIMRUNTIME/syntax/vhdl.vim. To use it, put it in your
~/.vim/after/syntax/ directory
On Sat, 14 Aug 2010, Jeri Raye wrote:
Hi Ben,
On Fri, Aug 13, 2010 at 8:45 PM, Benjamin R. Haskell wrote:
The attached file seems to do what you want, [...]
[...] For some insight into how it works, do:
:echo orig_syntax
when I type :echo original_syntax then I noticed that entity is
On 14/08/10 23:02, Benjamin R. Haskell wrote:
On Sat, 14 Aug 2010, Jeri Raye wrote:
Hi Ben,
On Fri, Aug 13, 2010 at 8:45 PM, Benjamin R. Haskell wrote:
The attached file seems to do what you want, [...]
[...] For some insight into how it works, do:
:echo orig_syntax
when I type :echo
On Sun, 15 Aug 2010, Tony Mechelynck wrote:
On 14/08/10 23:02, Benjamin R. Haskell wrote:
[...]
You also have to set foldmethod=syntax. Sorry, probably could've
added it to that file:
:set fdm=syntax
:setlocal fdm=syntax
You don't want to make it the new default
entity is a VHDL word, as well as if.
foo is a made up word.
It's also for the VHDL reserved words process, case, architecture.
I can't believe VIM can't fold reserved words?
Or is this a bug?
I did change entity into entit (so removing the y char) in the given syn region.
When I now type
On 13 Aug 2010, at 08:04, Jeri Raye wrote:
entity is a VHDL word, as well as if.
foo is a made up word.
It's also for the VHDL reserved words process, case, architecture.
I can't believe VIM can't fold reserved words?
Or is this a bug?
I did change entity into entit (so removing the
Hi Andrew!
On Fr, 13 Aug 2010, Andrew Long wrote:
Are they declared as 'syntax keyword'? If so, I think that trumps any
attempt to redefine them as regions/matches/etc. I had that problem
when writing a syntax file for another language; declaring keywords
highlights them unconditionally,
Hi Andrew,
On Fri, Aug 13, 2010 at 1:21 PM, Christian Brabandt cbli...@256bit.org wrote:
Hi Andrew!
On Fr, 13 Aug 2010, Andrew Long wrote:
Are they declared as 'syntax keyword'?
Yes they are.
If so, I think that trumps any
attempt to redefine them as regions/matches/etc. I had that problem
I can imagine something like this:
sy match vhdlFoo \foo\
sy match vhdlBar \bar\
sy region vhdlFooBarFold
\ start=
\ end=
\ fold transparent
\ keepend
What to fill in for the start and end parameter of the region, to get
the folding as:
+-- x lines: foo
On Fri, 13 Aug 2010, Jeri Raye wrote:
I can imagine something like this:
sy match vhdlFoo \foo\
sy match vhdlBar \bar\
sy region vhdlFooBarFold
\ start=
\ end=
\ fold transparent
\ keepend
What to fill in for the start and end parameter of the region, to get
On Fri, 13 Aug 2010, Benjamin R. Haskell wrote:
[...]
The attached file seems to do what you want, w.r.t. [...] not
modifying the original $VIMRUNTIME/syntax/vhdl.vim.
Hmm. I think I might have conflated two threads. I think you're
already using an 'after' directory.
It still solves
On Fri, 13 Aug 2010, Benjamin R. Haskell wrote:
On Fri, 13 Aug 2010, Jeri Raye wrote:
[...]
The attached file seems to do what you want, w.r.t. [...] not
modifying the original $VIMRUNTIME/syntax/vhdl.vim.
Hmm. I think I might have conflated two threads. I think you're
already using
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
14 matches
Mail list logo