javacc.vim (563B)
1 " Vim filetype plugin 2 " Language: JavaCC 3 " Maintainer: Riley Bruins <ribru17@gmail.com> 4 " Last Change: 2024 Jul 06 5 6 if exists('b:did_ftplugin') 7 finish 8 endif 9 let 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". 13 setlocal formatoptions-=t formatoptions+=croql 14 15 " Set 'comments' to format dashed lists in comments. Behaves just like C. 16 setlocal comments& comments^=sO:*\ -,mO:*\ \ ,exO:*/ 17 18 setlocal commentstring=//\ %s 19 20 let b:undo_ftplugin = 'setl fo< com< cms<'