blob: ae90f348bf17887cd420f07997f8f4ad4c118086 [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
22command -nargs=+ HiLink hi def link <args>
Bram Moolenaar071d4272004-06-13 20:20:40 +000023
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020024HiLink changeFromMaterial String
25HiLink changeToMaterial Statement
Bram Moolenaar071d4272004-06-13 20:20:40 +000026
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020027delcommand HiLink
Bram Moolenaar071d4272004-06-13 20:20:40 +000028
29let b:current_syntax = "change"
30
31" vim: ts=8