changeset 35243:05e34d7c76dd

runtime(rescript): include basic rescript ftplugin file (#14822) Commit: https://github.com/vim/vim/commit/802fc04a78a7d98673dc9171d4b89597447a5bda Author: Riley Bruins <ribru17@hotmail.com> Date: Wed May 22 07:49:17 2024 -0700 runtime(rescript): include basic rescript ftplugin file (https://github.com/vim/vim/issues/14822) Reference: https://rescript-lang.org/docs/manual/latest/overview#comments Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 22 May 2024 17:00:06 +0200
parents 3b7ee87c9e79
children 8f04cf65ecff
files .github/MAINTAINERS runtime/ftplugin/rescript.vim
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -207,6 +207,7 @@ runtime/ftplugin/qb64.vim		@dkearns
 runtime/ftplugin/qml.vim		@ChaseKnowlden
 runtime/ftplugin/racket.vim		@benknoble
 runtime/ftplugin/readline.vim		@dkearns
+runtime/ftplugin/rescript.vim		@ribru17
 runtime/ftplugin/routeros.vim		@zainin
 runtime/ftplugin/rst.vim		@marshallward
 runtime/ftplugin/ruby.vim		@tpope @dkearns
new file mode 100644
--- /dev/null
+++ b/runtime/ftplugin/rescript.vim
@@ -0,0 +1,13 @@
+" Vim filetype plugin
+" Language:	rescript
+" Maintainer:	Riley Bruins <ribru17@gmail.com>
+" Last Change:	2024 May 21
+
+if exists('b:did_ftplugin')
+  finish
+endif
+let b:did_ftplugin = 1
+
+setl comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// commentstring=//\ %s
+
+let b:undo_ftplugin = 'setl com< cms<'