summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-06-08 12:48:22 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-06-08 12:48:22 +0200
commit957228cc25960601577f490ccfb8aec0a28751ee (patch)
tree47525221f0fe30a4876c5ef6920889ee19792e19 /ftdetect
parent7aae831309b9ce8c8cf07d21673aa4e36d774edb (diff)
downloadvim-polyglot-957228cc25960601577f490ccfb8aec0a28751ee.tar.gz
vim-polyglot-957228cc25960601577f490ccfb8aec0a28751ee.zip
Add log syntax, closes #394
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index a3130217..11b4e060 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -706,6 +706,15 @@ au BufRead,BufNewFile *.td set filetype=tablegen
augroup end
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'log') == -1
+ augroup filetypedetect
+ " log, from log.vim in MTDL9/vim-log-highlighting
+
+au BufNewFile,BufRead *.log set filetype=log
+au BufNewFile,BufRead *_log set filetype=log
+ augroup end
+endif
+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1
augroup filetypedetect
" mako, from mako.vim in sophacles/vim-bundle-mako