blob: f83c098b437a294304b0d252adb2ea4b095738d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|