Skip to content

Commit

Permalink
Merge pull request #256 from Chris-Slade/master
Browse files Browse the repository at this point in the history
Add javascriptreact/typescriptreact filetypes
  • Loading branch information
tomtom committed Feb 21, 2020
2 parents 7bb38b0 + 719fffe commit 20e85e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoload/tcomment/types/default.vim
Expand Up @@ -110,6 +110,9 @@ call tcomment#type#Define('java_inline', g:tcomment#inline_fmt_c )
call tcomment#type#Define('javascript', tcomment#GetLineC('// %s'))
call tcomment#type#Define('javascript_block', g:tcomment#block_fmt_c )
call tcomment#type#Define('javascript_inline', g:tcomment#inline_fmt_c )
call tcomment#type#Define('javascriptreact', tcomment#GetLineC('// %s'))
call tcomment#type#Define('javascriptreact_block', g:tcomment#block_fmt_c )
call tcomment#type#Define('javascriptreact_inline', g:tcomment#inline_fmt_c )
call tcomment#type#Define('jsx', {'commentstring_rx': '\%%(// %s\|{/* %s */}\)', 'commentstring': '{/* %s */}'})
call tcomment#type#Define('jsx_block', '{/* %s */}')
call tcomment#type#Define('jsx_inline', '{/* %s */}')
Expand Down Expand Up @@ -241,6 +244,9 @@ call tcomment#type#Define('tup', '# %s' )
call tcomment#type#Define('typescript', tcomment#GetLineC('// %s'))
call tcomment#type#Define('typescript_block', g:tcomment#block_fmt_c )
call tcomment#type#Define('typescript_inline', g:tcomment#inline_fmt_c )
call tcomment#type#Define('typescriptreact', tcomment#GetLineC('// %s'))
call tcomment#type#Define('typescriptreact_block', g:tcomment#block_fmt_c )
call tcomment#type#Define('typescriptreact_inline', g:tcomment#inline_fmt_c )
call tcomment#type#Define('typoscript', '# %s' )
call tcomment#type#Define('upstart', '# %s' )
call tcomment#type#Define('vader', {'col': 1, 'commentstring': '" %s' })
Expand Down

0 comments on commit 20e85e8

Please sign in to comment.