view runtime/syntax/gitignore.vim @ 34658:224d4a792264 v9.1.0213

patch 9.1.0213: CI: MS-Windows fails in test_winfixbuf Commit: https://github.com/vim/vim/commit/aed6554b46bbba39bcb22e49cc731176cd75789b Author: Sean Dewar <6256228+seandewar@users.noreply.github.com> Date: Thu Mar 28 09:48:34 2024 +0100 patch 9.1.0213: CI: MS-Windows fails in test_winfixbuf Problem: CI: MS-Windows fails in test_winfixbuf (after v9.1.208) Solution: Instead of skipping the test, write the file so it exists on disk, to verify that MS-Windows short filename expansion is successful. (Sean Dewar) related: #14286 Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 28 Mar 2024 10:00:07 +0100
parents fee9eccee266
children
line wrap: on
line source

" Vim syntax file
" Language:	git ignore
" Maintainer:	ObserverOfTime <chronobserver@disroot.org>
" 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<![?*]/ contained
syn match gitignoreRange /\\\@1<!\[.\{-}\]/ contained
syn match gitignoreSeparator '/' contained

hi def link gitignoreComment Comment
hi def link gitignoreGlob Special
hi def link gitignoreNegation SpecialChar
hi def link gitignoreRange Special
hi def link gitignoreSeparator Delimiter
hi def link gitignoreTodo Todo

let b:current_syntax = 'gitignore'