view runtime/ftplugin/elm.vim @ 35050:ef62cd409cdd draft default tip

runtime(asm): fix undefined variable in indent plugin Commit: https://github.com/vim/vim/commit/98b12ede31754071f36fb7a73324456c1ee7b89c Author: Christian Brabandt <cb@256bit.org> Date: Thu Apr 25 22:42:05 2024 +0200 runtime(asm): fix undefined variable in indent plugin It's an indent script, so we need to set the b:undo_indent variable instead of the b:undo_ftplugin var. fixes: #14602 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 25 Apr 2024 22:45:03 +0200
parents 4d76b3e07c07
children
line wrap: on
line source

" Elm filetype plugin file
" Language: Elm
" Maintainer: Andreas Scharf <as@99n.de>
" Latest Revision: 2022-04-25

if exists("b:did_ftplugin")
  finish
endif
let b:did_ftplugin = 1

let s:cpo_save = &cpo
set cpo&vim

setlocal comments=s1fl:{-,mb:\ ,ex:-},:--
setlocal commentstring=--\ %s

let b:undo_ftplugin = "setl com< cms<"

let &cpo = s:cpo_save
unlet s:cpo_save