diff options
Diffstat (limited to 'syntax')
-rw-r--r-- | syntax/gitignore.vim | 23 |
1 files changed, 23 insertions, 0 deletions
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 <rd@roman-dolgushin.ru> +" 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 |