blob: a92767e903248e155fb69ab10da08fa353dfb100 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" 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
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020010" quit when a syntax file was already loaded
11if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000012 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.
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020021" Only when an item doesn't have highlighting yet
Bram Moolenaar071d4272004-06-13 20:20:40 +000022
Bram Moolenaarf37506f2016-08-31 22:22:10 +020023hi def link changeFromMaterial String
24hi def link changeToMaterial Statement
Bram Moolenaar071d4272004-06-13 20:20:40 +000025
Bram Moolenaar071d4272004-06-13 20:20:40 +000026
27let b:current_syntax = "change"
28
29" vim: ts=8