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