Mercurial > vim
view runtime/syntax/gitignore.vim @ 33515:f41bdc22abcd v9.0.2006
patch 9.0.2006: Vim9: need more tests
Commit: https://github.com/vim/vim/commit/f4ee1cb74ba86383190ffcda84147892f7740f21
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Oct 9 17:57:27 2023 +0200
patch 9.0.2006: Vim9: need more tests
Problem: Vim9: need more tests
Solution: add additional disassembly tests
closes: #13305
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 09 Oct 2023 18:00:10 +0200 |
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'