codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: generic ChangeLog file3" Written By: Gediminas Paulauskas <menesis@delfi.lt>4" Maintainer: Corinna Vinschen <vinschen@redhat.com>5" Last Change: June 1, 20036 7" quit when a syntax file was already loaded8if exists("b:current_syntax")9 finish10endif11 12syn case ignore13 14if exists('b:changelog_spacing_errors')15 let s:spacing_errors = b:changelog_spacing_errors16elseif exists('g:changelog_spacing_errors')17 let s:spacing_errors = g:changelog_spacing_errors18else19 let s:spacing_errors = 120endif21 22if s:spacing_errors23 syn match changelogError "^ \+"24endif25 26syn match changelogText "^\s.*$" contains=changelogMail,changelogNumber,changelogMonth,changelogDay,changelogError27syn match changelogHeader "^\S.*$" contains=changelogNumber,changelogMonth,changelogDay,changelogMail28syn region changelogFiles start="^\s\+[+*]\s" end=":" end="^$" contains=changelogBullet,changelogColon,changelogFuncs,changelogError keepend29syn region changelogFiles start="^\s\+[([]" end=":" end="^$" contains=changelogBullet,changelogColon,changelogFuncs,changelogError keepend30syn match changelogFuncs contained "(.\{-})" extend31syn match changelogFuncs contained "\[.\{-}]" extend32syn match changelogColon contained ":"33 34syn match changelogBullet contained "^\s\+[+*]\s" contains=changelogError35syn match changelogMail contained "<[A-Za-z0-9\._:+-]\+@[A-Za-z0-9\._-]\+>"36syn keyword changelogMonth contained jan feb mar apr may jun jul aug sep oct nov dec37syn keyword changelogDay contained mon tue wed thu fri sat sun38syn match changelogNumber contained "[.-]*[0-9]\+"39 40" Define the default highlighting.41" Only when an item doesn't have highlighting yet42 43hi def link changelogText Normal44hi def link changelogBullet Type45hi def link changelogColon Type46hi def link changelogFiles Comment47hi def link changelogFuncs Comment48hi def link changelogHeader Statement49hi def link changelogMail Special50hi def link changelogNumber Number51hi def link changelogMonth Number52hi def link changelogDay Number53hi def link changelogError Folded54 55 56let b:current_syntax = "changelog"57 58" vim: ts=859 