blob: dd18e199482c723bdf6702737ef853d6dd012282 [file] [log] [blame]
Yinzuo Jiang011f2222024-07-29 20:51:05 +02001" Vim filetype plugin file
2" Language: Apache Thrift
3" Maintainer: Yinzuo Jiang <jiangyinzuo@foxmail.com>
4" Last Change: 2024/07/29
5
6if exists("b:did_ftplugin")
7 finish
8endif
9
10let 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
14setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://,b:#
15setlocal commentstring=//\ %s
16
17let b:undo_ftplugin = 'setl comments< commentstring<'