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: #14813
Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
aa3104b07a
commit
155583a5c3
14
runtime/ftplugin/purescript.vim
Normal file
14
runtime/ftplugin/purescript.vim
Normal file
@ -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<'
|
||||
Reference in New Issue
Block a user