Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
gitattributes.vim64 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	git attributes3" Maintainer:	ObserverOfTime <chronobserver@disroot.org>4" Filenames:	.gitattributes, *.git/info/attributes5" Last Change:	2022 Sep 096 7if exists('b:current_syntax')8    finish9endif10 11let s:cpo_save = &cpoptions12set cpoptions&vim13 14" Comment15syn keyword gitattributesTodo contained TODO FIXME XXX16syn match gitattributesComment /^\s*#.*/ contains=gitattributesTodo17 18" Pattern19syn match gitattributesPattern /^\s*#\@!\(".\+"\|\S\+\)/ skipwhite20            \ nextgroup=gitattributesAttrPrefixed,gitattributesAttrAssigned skipwhite21            \ contains=gitattributesGlob,gitattributesRange,gitattributesSeparator22syn match gitattributesGlob /\\\@1<![?*]/ contained23syn match gitattributesRange /\\\@1<!\[.\{-}\]/ contained24syn match gitattributesSeparator '/' contained25 26" Attribute27syn match gitattributesAttrPrefixed /[!-]\?[A-Za-z0-9_.][-A-Za-z0-9_.]*/28            \ transparent contained skipwhite29            \ nextgroup=gitattributesAttrPrefixed,gitattributesAttrAssigned30            \ contains=gitattributesPrefix,gitattributesName31syn match gitattributesAttrAssigned /[A-Za-z0-9_.][-A-Za-z0-9_.]*=\S\+/32            \ transparent contained skipwhite33            \ nextgroup=gitattributesAttrPrefixed,gitattributesAttrAssigned34            \ contains=gitattributesName,gitattributesAssign,gitattributesBoolean,gitattributesString35syn match gitattributesName /[A-Za-z0-9_.][-A-Za-z0-9_.]*/36            \ contained nextgroup=gitattributesAssign37syn match gitattributesPrefix /[!-]/ contained38            \ nextgroup=gitAttributesName39syn match gitattributesAssign '=' contained40            \ nextgroup=gitattributesBoolean,gitattributesString41syn match gitattributesString /=\@1<=\S\+/ contained42syn keyword gitattributesBoolean true false contained43 44" Macro45syn match gitattributesMacro /^\s*\[attr\]\s*\S\+/46            \ nextgroup=gitattributesAttribute skipwhite47 48hi def link gitattributesAssign Operator49hi def link gitattributesBoolean Boolean50hi def link gitattributesComment Comment51hi def link gitattributesGlob Special52hi def link gitattributesMacro Define53hi def link gitattributesName Identifier54hi def link gitattributesPrefix SpecialChar55hi def link gitattributesRange Special56hi def link gitattributesSeparator Delimiter57hi def link gitattributesString String58hi def link gitattributesTodo Todo59 60let b:current_syntax = 'gitattributes'61 62let &cpoptions = s:cpo_save63unlet s:cpo_save64 
codekingpro/portable-devtools · Team Ai