xref: /vim-8.2.3635/runtime/syntax/change.vim (revision f37506f6)
1" Vim syntax file
2" Language:	WEB Changes
3" Maintainer:	Andreas Scherer <[email protected]>
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
11if exists("b:current_syntax")
12  finish
13endif
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.
17syn region changeFromMaterial start="^@x.*$"ms=e+1 end="^@y.*$"me=s-1
18syn 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
23hi def link changeFromMaterial String
24hi def link changeToMaterial Statement
25
26
27let b:current_syntax = "change"
28
29" vim: ts=8
30