1
0
Fork 0
vim/runtime/ftplugin/thrift.vim
Daniel Baumann 0985b09abd
Adding upstream version 2:9.1.1230.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 11:09:31 +02:00

17 lines
542 B
VimL

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