blob: 780c68b0f9f99716f586e5cd698065fb5ca79dda [file] [log] [blame]
Riley Bruinsa264bb92024-07-07 20:59:42 +02001" Vim filetype plugin
2" Language: JavaCC
3" Maintainer: Riley Bruins <ribru17@gmail.com>
4" Last Change: 2024 Jul 06
5
6if exists('b:did_ftplugin')
7 finish
8endif
9let b:did_ftplugin = 1
10
11" Set 'formatoptions' to break comment lines but not other lines,
12" and insert the comment leader when hitting <CR> or using "o".
13setlocal formatoptions-=t formatoptions+=croql
14
15" Set 'comments' to format dashed lists in comments. Behaves just like C.
16setlocal comments& comments^=sO:*\ -,mO:*\ \ ,exO:*/
17
18setlocal commentstring=//\ %s
19
20let b:undo_ftplugin = 'setl fo< com< cms<'