aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/purescript.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-05-20 14:24:46 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-05-20 14:43:12 +0200
commit5c2616846aa4d85ba96adefea98ed50f46f7a291 (patch)
treea59d3af01461a1c13081c90bc9c648e3c0321c44 /runtime/ftplugin/purescript.vim
parent70c0b03e61194766ec5b59e43ff2e98826d03048 (diff)
downloadrneovim-5c2616846aa4d85ba96adefea98ed50f46f7a291.tar.gz
rneovim-5c2616846aa4d85ba96adefea98ed50f46f7a291.tar.bz2
rneovim-5c2616846aa4d85ba96adefea98ed50f46f7a291.zip
vim-patch:9.1.0425: filetype: purescript files are not recognized
Problem: filetype: purescript files are not recognized Solution: recognize '*.purs' files as purescript filetype, include basic purescript filetype plugin (Riley Bruins) Reference: https://github.com/purescript/documentation/blob/master/language/Syntax.md#comments closes: vim/vim#14813 https://github.com/vim/vim/commit/155583a5c317881e60828e3972383436ac197ee8 Co-authored-by: Riley Bruins <ribru17@hotmail.com>
Diffstat (limited to 'runtime/ftplugin/purescript.vim')
-rw-r--r--runtime/ftplugin/purescript.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/ftplugin/purescript.vim b/runtime/ftplugin/purescript.vim
new file mode 100644
index 0000000000..b3300bb324
--- /dev/null
+++ b/runtime/ftplugin/purescript.vim
@@ -0,0 +1,14 @@
+" Vim filetype plugin
+" Language: purescript
+" Maintainer: Riley Bruins <ribru17@gmail.com>
+" Last Change: 2024 May 19
+
+if exists('b:did_ftplugin')
+ finish
+endif
+let b:did_ftplugin = 1
+
+setl comments=s1f:{-,mb:\ ,ex:-},:--\ \|,:--
+setl commentstring=--\ %s
+
+let b:undo_ftplugin = 'setl com< cms<'