codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: git ignore3" Maintainer: ObserverOfTime <chronobserver@disroot.org>4" Filenames: .gitignore, *.git/info/exclude5" Last Change: 2022 Sep 106 7if exists('b:current_syntax')8 finish9endif10 11" Comment12syn keyword gitignoreTodo contained TODO FIXME XXX13syn match gitignoreComment /^#.*/ contains=gitignoreTodo14 15" Pattern16syn match gitignorePattern /^#\@!.*$/ contains=gitignoreNegation,gitignoreGlob,gitignoreRange,gitignoreSeparator17syn match gitignoreNegation /^!/ contained18syn match gitignoreGlob /\\\@1<![?*]/ contained19syn match gitignoreRange /\\\@1<!\[.\{-}\]/ contained20syn match gitignoreSeparator '/' contained21 22hi def link gitignoreComment Comment23hi def link gitignoreGlob Special24hi def link gitignoreNegation SpecialChar25hi def link gitignoreRange Special26hi def link gitignoreSeparator Delimiter27hi def link gitignoreTodo Todo28 29let b:current_syntax = 'gitignore'30 