thrift.vim 542 B

123456789101112131415161718
  1. " Vim filetype plugin file
  2. " Language: Apache Thrift
  3. " Maintainer: Yinzuo Jiang <jiangyinzuo@foxmail.com>
  4. " Last Change: 2024/07/29
  5. if exists("b:did_ftplugin")
  6. finish
  7. endif
  8. let b:did_ftplugin = 1
  9. " Thrift supports shell-style, C-style multi-line as well as single-line Java/C++ style comments.
  10. " Reference: https://diwakergupta.github.io/thrift-missing-guide/#_language_reference
  11. setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://,b:#
  12. setlocal commentstring=//\ %s
  13. let b:undo_ftplugin = 'setl comments< commentstring<'