Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
change.vim30 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	WEB Changes3" Maintainer:	Andreas Scherer <andreas.scherer@pobox.com>4" Last Change:	April 25, 20015 6" Details of the change mechanism of the WEB and CWEB languages can be found7" in the articles by Donald E. Knuth and Silvio Levy cited in "web.vim" and8" "cweb.vim" respectively.9 10" quit when a syntax file was already loaded11if exists("b:current_syntax")12  finish13endif14 15" We distinguish two groups of material, (a) stuff between @x..@y, and16" (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-118syn region changeToMaterial start="^@y.*$"ms=e+1 end="^@z.*$"me=s-119 20" Define the default highlighting.21" Only when an item doesn't have highlighting yet22 23hi def link changeFromMaterial String24hi def link changeToMaterial Statement25 26 27let b:current_syntax = "change"28 29" vim: ts=830 
codekingpro/portable-devtools · Team Ai