From e271110e37281f853e97ac073b0a8f4a50d181a1 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 8 Jul 2024 10:47:31 +0200 Subject: [PATCH] vim-patch:08b0c12: runtime(squirrel): include squirrel ftplugin file Comment spec found [here](https://squirrel-lang.org/squirreldoc/reference/language/lexical_structure.html#comments) closes: vim/vim#15172 https://github.com/vim/vim/commit/08b0c12716062f45046cd13da05bde0a72383813 Co-authored-by: Riley Bruins --- runtime/ftplugin/squirrel.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 runtime/ftplugin/squirrel.vim diff --git a/runtime/ftplugin/squirrel.vim b/runtime/ftplugin/squirrel.vim new file mode 100644 index 0000000000..559be88001 --- /dev/null +++ b/runtime/ftplugin/squirrel.vim @@ -0,0 +1,17 @@ +" Vim filetype plugin +" Language: Squirrel +" Maintainer: Riley Bruins +" Last Change: 2024 Jul 06 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +" Set 'comments' to format dashed lists in comments. +" Also include ///, used for Doxygen. +setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// + +setlocal commentstring=//\ %s + +let b:undo_ftplugin = 'setl com< cms<'