Mercurial > vim
changeset 35593:030163caf821
runtime(squirrel): include squirrel ftplugin file
Commit: https://github.com/vim/vim/commit/08b0c12716062f45046cd13da05bde0a72383813
Author: Riley Bruins <ribru17@hotmail.com>
Date: Sun Jul 7 21:14:59 2024 +0200
runtime(squirrel): include squirrel ftplugin file
Comment spec found [here](https://squirrel-lang.org/squirreldoc/reference/language/lexical_structure.html#comments)
closes: #15172
Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 07 Jul 2024 21:30:02 +0200 |
parents | 5d823b05b5f1 |
children | a1bdd40453dd |
files | .github/MAINTAINERS runtime/ftplugin/squirrel.vim |
diffstat | 2 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.github/MAINTAINERS +++ b/.github/MAINTAINERS @@ -239,6 +239,7 @@ runtime/ftplugin/snakemake.vim @ribru17 runtime/ftplugin/solidity.vim @cothi runtime/ftplugin/solution.vim @dkearns runtime/ftplugin/spec.vim @ignatenkobrain +runtime/ftplugin/squirrel.vim @ribru17 runtime/ftplugin/ssa.vim @ObserverOfTime runtime/ftplugin/sshdconfig.vim @jiangyinzuo runtime/ftplugin/svelte.vim @igorlfs
new file mode 100644 --- /dev/null +++ b/runtime/ftplugin/squirrel.vim @@ -0,0 +1,17 @@ +" Vim filetype plugin +" Language: Squirrel +" Maintainer: Riley Bruins <ribru17@gmail.com> +" 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<'