" Vim syntax file " Language: git ignore " Maintainer: ObserverOfTime " Filenames: .gitignore, *.git/info/exclude " Last Change: 2022 Sep 10 if exists('b:current_syntax') finish endif " Comment syn keyword gitignoreTodo contained TODO FIXME XXX syn match gitignoreComment /^#.*/ contains=gitignoreTodo " Pattern syn match gitignorePattern /^#\@!.*$/ contains=gitignoreNegation,gitignoreGlob,gitignoreRange,gitignoreSeparator syn match gitignoreNegation /^!/ contained syn match gitignoreGlob /\\\@1