diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-07-08 10:45:43 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-08 12:14:44 +0200 |
commit | d70c22413142b4926c20e196fba1b6da8b2cc2ee (patch) | |
tree | d55211a7b13622e05d73f3e3031a619aa2279f2b | |
parent | bc3051e7a714ab7a55d54d02ddaf7b192c637951 (diff) | |
download | rneovim-d70c22413142b4926c20e196fba1b6da8b2cc2ee.tar.gz rneovim-d70c22413142b4926c20e196fba1b6da8b2cc2ee.tar.bz2 rneovim-d70c22413142b4926c20e196fba1b6da8b2cc2ee.zip |
vim-patch:a264bb9: runtime(javacc): include javacc ftplugin file
closes: vim/vim#15167
https://github.com/vim/vim/commit/a264bb931eb9e470b6a3af1c255988dd526adb70
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
-rw-r--r-- | runtime/ftplugin/javacc.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/ftplugin/javacc.vim b/runtime/ftplugin/javacc.vim new file mode 100644 index 0000000000..780c68b0f9 --- /dev/null +++ b/runtime/ftplugin/javacc.vim @@ -0,0 +1,20 @@ +" Vim filetype plugin +" Language: JavaCC +" Maintainer: Riley Bruins <ribru17@gmail.com> +" Last Change: 2024 Jul 06 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +" Set 'formatoptions' to break comment lines but not other lines, +" and insert the comment leader when hitting <CR> or using "o". +setlocal formatoptions-=t formatoptions+=croql + +" Set 'comments' to format dashed lists in comments. Behaves just like C. +setlocal comments& comments^=sO:*\ -,mO:*\ \ ,exO:*/ + +setlocal commentstring=//\ %s + +let b:undo_ftplugin = 'setl fo< com< cms<' |