changeset 35218:71d83aa76001

runtime(typst): include basic typst ftplugin file (#14809) Commit: https://github.com/vim/vim/commit/c3d5c2fc87212865ee73738cd381ddbaf8132c33 Author: Riley Bruins <ribru17@hotmail.com> Date: Mon May 20 05:08:49 2024 -0700 runtime(typst): include basic typst ftplugin file (https://github.com/vim/vim/issues/14809) Reference: https://typst.app/docs/reference/syntax/#comments Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 20 May 2024 14:15:06 +0200
parents c10896bcecd7
children 82cc33448f6b
files .github/MAINTAINERS runtime/ftplugin/typst.vim
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -230,6 +230,7 @@ runtime/ftplugin/toml.vim		@averms
 runtime/ftplugin/tt2html.vim		@petdance
 runtime/ftplugin/typescript.vim		@dkearns
 runtime/ftplugin/typescriptreact.vim	@dkearns
+runtime/ftplugin/typst.vim		@ribru17
 runtime/ftplugin/unison.vim		@chuwy
 runtime/ftplugin/v.vim			@ribru17
 runtime/ftplugin/vdf.vim		@ObserverOfTime
new file mode 100644
--- /dev/null
+++ b/runtime/ftplugin/typst.vim
@@ -0,0 +1,14 @@
+" Vim filetype plugin
+" Language:	typst
+" Maintainer:	Riley Bruins <ribru17@gmail.com>
+" Last Change:	2024 May 19
+
+if exists('b:did_ftplugin')
+  finish
+endif
+let b:did_ftplugin = 1
+
+setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
+setlocal commentstring=//\ %s
+
+let b:undo_ftplugin = 'setl com< cms<'