javacc.vim 563 B

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