]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(sml): add 'include' setting to ftplugin
authorMateo Gjika <104777599+mateoxh@users.noreply.github.com>
Mon, 19 Jan 2026 19:10:41 +0000 (19:10 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 19 Jan 2026 19:10:41 +0000 (19:10 +0000)
closes: #19156

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/sml.vim

index f4a2f4ecd053ab5b29ad321e72dcc3abcf11e915..328d9eea186dcfdbfcc2c8abc49c98230ac70581 100644 (file)
@@ -3,6 +3,7 @@
 " Filenames:           *.sml *.sig
 " Maintainer:          tocariimaa <tocariimaa@firemail.cc>
 " Last Change:         2025 Nov 04
+" 2026 Jan 19 by Vim Project: add 'include' setting
 
 if exists('b:did_ftplugin')
   finish
@@ -12,11 +13,12 @@ let b:did_ftplugin = 1
 let s:cpo_save = &cpo
 set cpo&vim
 
-let b:undo_ftplugin = 'setl com< cms< fo<'
+let b:undo_ftplugin = 'setl com< cms< fo< inc<'
 
 setlocal formatoptions+=croql formatoptions-=t
 setlocal commentstring=(*\ %s\ *)
 setlocal comments=sr:(*,mb:*,ex:*)
+setlocal include=^\\s*use\\>
 
 if exists('loaded_matchit')
   let b:match_ignorecase = 0