change.vim (901B)
1 " Vim syntax file 2 " Language: WEB Changes 3 " Maintainer: Andreas Scherer <andreas.scherer@pobox.com> 4 " Last Change: April 25, 2001 5 6 " Details of the change mechanism of the WEB and CWEB languages can be found 7 " in the articles by Donald E. Knuth and Silvio Levy cited in "web.vim" and 8 " "cweb.vim" respectively. 9 10 " quit when a syntax file was already loaded 11 if exists("b:current_syntax") 12 finish 13 endif 14 15 " We distinguish two groups of material, (a) stuff between @x..@y, and 16 " (b) stuff between @y..@z. WEB/CWEB ignore everything else in a change file. 17 syn region changeFromMaterial start="^@x.*$"ms=e+1 end="^@y.*$"me=s-1 18 syn region changeToMaterial start="^@y.*$"ms=e+1 end="^@z.*$"me=s-1 19 20 " Define the default highlighting. 21 " Only when an item doesn't have highlighting yet 22 23 hi def link changeFromMaterial String 24 hi def link changeToMaterial Statement 25 26 27 let b:current_syntax = "change" 28 29 " vim: ts=8