From d53d2189b92ab8150753201e2e2f8cba14b8edc9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 24 Sep 2020 23:24:42 +0200 Subject: Add support for .gitignore highlighting --- syntax/gitignore.vim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 syntax/gitignore.vim (limited to 'syntax') diff --git a/syntax/gitignore.vim b/syntax/gitignore.vim new file mode 100644 index 00000000..f83c098b --- /dev/null +++ b/syntax/gitignore.vim @@ -0,0 +1,23 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gitignore') == -1 + +" Vim syntax file +" Language: .gitignore +" Maintainer: Roman Dolgushin +" URL: http://github.com/rdolgushin/gitignore.vim + +if exists('b:current_syntax') + finish +endif + +if !exists('main_syntax') + let main_syntax = 'conf' +endif + +runtime! syntax/conf.vim +unlet b:current_syntax + +let b:current_syntax = 'gitignore' + +setlocal commentstring=#%s + +endif -- cgit v1.2.3