robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
a9271f927f
master
1" Vim filetype plugin file 2" Language: SML 3" Filenames: *.sml *.sig 4" Maintainer: tocariimaa <tocariimaa@firemail.cc> 5" Last Change: 2025 Nov 04 6" 2026 Jan 19 by Vim Project: add 'include' setting 7 8if exists ( 'b:did_ftplugin' ) 9finish 10endif 11let b: did_ftplugin = 1 12 13let s: cpo_save = & cpo 14set cpo & vim 15 16let b: undo_ftplugin = 'setl com< cms< fo< inc<' 17 18setlocal formatoptions += croqlformatoptions -= t 19setlocal commentstring = (*\ %s\ *) 20setlocal comments = sr:(*,mb:*,ex:*) 21setlocal include = ^\\s*use\\> 22 23if exists ( 'loaded_matchit' ) 24let b: match_ignorecase = 0 25let b: match_words = '\<\%(abstype\|let\|local\|sig\|struct\)\>:\<\%(in\|with\)\>:\<end\>' 26let b: undo_ftplugin ..= ' | unlet! b:match_ignorecase b:match_words' 27endif 28 29if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && ! exists ( "b:browsefilter" ) 30let b: browsefilter = "SML Source Files (*.sml)\t*.sml\n" .. 31 \"SML Signature Files (*.sig)\t*.sig\n" 32if has ( "win32" ) 33let b: browsefilter ..= "All Files (*.*)\t*\n" 34else 35let b: browsefilter ..= "All Files (*)\t*\n" 36endif 37let b: undo_ftplugin ..= " | unlet! b:browsefilter" 38endif 39 40let & cpo = s: cpo_save 41unlet s: cpo_save