diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2016-05-02 10:50:59 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2016-05-02 10:50:59 +0200 |
commit | 7a29850ae926e8fabf18058061187582e04dedde (patch) | |
tree | 32fb4ae58b475428e8c2942ec52e1e8605128dd2 /ftdetect | |
parent | c200e7a0c587f70611b8dd702d0c3b378676a39a (diff) | |
download | vim-polyglot-7a29850ae926e8fabf18058061187582e04dedde.tar.gz vim-polyglot-7a29850ae926e8fabf18058061187582e04dedde.zip |
Add plantuml syntax, closes #116
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index edb46195..8b93964a 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -347,6 +347,14 @@ endfunction autocmd BufReadPost *.pl,*.pm,*.t call s:DetectPerl6() autocmd BufNew,BufNewFile,BufRead *.nqp setf perl6 endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'plantuml') == -1 + +if did_filetype() + finish +endif +autocmd BufRead,BufNewFile * :if getline(1) =~ '^.*startuml.*$'| setfiletype plantuml | endif +autocmd BufRead,BufNewFile *.pu,*.uml,*.plantuml set filetype=plantuml +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'protobuf') == -1 autocmd BufNewFile,BufRead *.proto setfiletype proto |