On 4/11/06, Nikolai Weibull <[EMAIL PROTECTED]> wrote:
> On 4/11/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> > On 4/11/06, Nikolai Weibull <[EMAIL PROTECTED]> wrote:
> > > As per your request, here's a syntax/kconfig.vim.
> >
> > Nice job Nikolai, thanks.
> > I went though all 2.6 Kconfig files and noticed some mishighlightings.
> > I extracted them into the attchment, which see (with :set ft=kconfig').
> >
> > Another issue that I noticed:
> > when scrolling backward (PgUp) on large Kconfig file,
> > I get  many many unhighlighted lines, sometimes
> > half-screen of them, which get highlighted when I do Ctrl-L.
>
here's a slightly updated version to fix some of the issues
> that you found.  Most of them are due to the line-continuation
> directive /\\$/ which causes a lot of extra work to deal with
> correctly (it can be basically anywhere, which makes it hard to retain
> the state we try to keep), and comments, which could be made into a
> command and thus most of the problems would go away, but never all of
> them.
>
> As a solution I've made a "light" version of the kconfig syntax to use
> as a default.  The "heavy" one previously defined can be enabled by
>
> :let g:kconfig_syntax_heavy = 1

Light version suffers from this big problem: the apostrophe in help text
scrambles highlighting for many following paragpaphs
(like "won't" ). Heavy version doesn't suffer from this problem.

Both in light and in heavy version: keywords (if, source )
are highlighted in help texts. Keywords probably shall not be highlighted
in help texts.

Yakov

Reply via email to