gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] Re: Re: hack request


From: Nikolai Weibull
Subject: [Gnu-arch-users] Re: Re: hack request
Date: Mon, 4 Oct 2004 12:46:50 +0200
User-agent: Mutt/1.5.6i

* Alexey Voinov <address@hidden> [Oct 04, 2004 12:40]:
> I have following in my ~/.vim/scripts.vim
> if getline(1) =~ '^\*\slooking\sfor\s'
>         setf tladiff
> elseif
> ...
> endif
>
> This autodetects output from tla changes --diffs almost always.
> And this is content of ~/.vim/syntax/tladiff.vim:
>
> if version < 600
>         syntax clear
> elseif exists("b:current_syntax")
>         finish
> endif
>
> runtime! syntax/diff.vim
> unlet b:current_syntax
>
> syn match diffRemoved   "^D.*"
> syn match diffAdded     "^A.*"
> syn match diffChanged   "^M.*"
> syn match diffOldFile   "^\* looking for .*$"
> syn match diffNewFile   "^\* comparing to .*$"
> syn match diffComment   "^* \(added\|modified\) files$"
>
> let b:current_syntax = "tladiff"
>
> This colorizes some tla-specific lines.

Very nice.  Have you considered submitting this to Bram?  I'm sure he'd
include it,
        nikolai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]