Skip to content

Commit

Permalink
FIX bib commentdef (use if condition proposed by enno)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtom committed Mar 15, 2020
1 parent 0628c96 commit b9a075e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autoload/tcomment/types/default.vim
@@ -1,8 +1,8 @@
" @Author: Tom Link (mailto:micathom AT gmail com?subject=[vim])
" @Website: https://github.com/tomtom
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Last Change: 2020-03-12
" @Revision: 23
" @Last Change: 2020-03-15
" @Revision: 28

call tcomment#type#Define('aap', '# %s' )
call tcomment#type#Define('ada', '-- %s' )
Expand All @@ -14,7 +14,7 @@ call tcomment#type#Define('applescript_inline','# %s' )
call tcomment#type#Define('asciidoc', '// %s' )
call tcomment#type#Define('asm', '; %s' )
call tcomment#type#Define('asterisk', '; %s' )
call tcomment#type#Define('bib', {'choose': [{'if': 'col(".") <= 1', 'commentstring': '@Comment{%s}'}, {'commentstring': '%% %s'}]})
call tcomment#type#Define('bib', {'choose': [{'if': 'getline(''.'') =~? ''^\s*@''', 'commentstring': '@Comment{%s}'}, {'commentstring': '%% %s'}]})
call tcomment#type#Define('blade', '{{-- %s --}}' )
call tcomment#type#Define('blade_block', '{{--%s--}}' )
call tcomment#type#Define('blade_inline', '{{-- %s --}}' )
Expand Down

0 comments on commit b9a075e

Please sign in to comment.