" Vim syntax file " Language: git attributes " Maintainer: ObserverOfTime " Filenames: .gitattributes, *.git/info/attributes " Last Change: 2022 Sep 09 if exists('b:current_syntax') finish endif let s:cpo_save = &cpoptions set cpoptions&vim " Comment syn keyword gitattributesTodo contained TODO FIXME XXX syn match gitattributesComment /^\s*#.*/ contains=gitattributesTodo " Pattern syn match gitattributesPattern /^\s*#\@!\(".\+"\|\S\+\)/ skipwhite \ nextgroup=gitattributesAttrPrefixed,gitattributesAttrAssigned skipwhite \ contains=gitattributesGlob,gitattributesRange,gitattributesSeparator syn match gitattributesGlob /\\\@1