aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-05-20 14:15:35 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-05-20 14:43:12 +0200
commit7d6a8438c927693701ee60be9d09581a12345270 (patch)
treeb35d1f120312b88a67322e09e8ffb0590d35b211
parent27a3e92a87265aeb13ca823afdbe63f08977d792 (diff)
downloadrneovim-7d6a8438c927693701ee60be9d09581a12345270.tar.gz
rneovim-7d6a8438c927693701ee60be9d09581a12345270.tar.bz2
rneovim-7d6a8438c927693701ee60be9d09581a12345270.zip
vim-patch:c3d5c2fc8721
runtime(typst): include basic typst ftplugin file (vim/vim#14809) Reference: https://typst.app/docs/reference/syntax/#comments https://github.com/vim/vim/commit/c3d5c2fc87212865ee73738cd381ddbaf8132c33 Co-authored-by: Riley Bruins <ribru17@hotmail.com>
-rw-r--r--runtime/ftplugin/typst.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/ftplugin/typst.vim b/runtime/ftplugin/typst.vim
new file mode 100644
index 0000000000..c2d7811ace
--- /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<'