]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(haskell): Add single quote to `iskeyword` in ftplugin (#8191)
authorEnrico Maria De Angelis <enricomaria.dean6elis@gmail.com>
Sun, 20 Aug 2023 19:29:09 +0000 (20:29 +0100)
committerGitHub <noreply@github.com>
Sun, 20 Aug 2023 19:29:09 +0000 (21:29 +0200)
The single quote `'` is a valid character in variable names, so it should be included in `iskeyword`; this, for instance, makes the <kbd>*</kbd> command behave predictably

runtime/ftplugin/haskell.vim

index 84f4d0563b99a6f34ed5bed6fbad24ed8f66c84a..2a864bf9161e9b374becf07c8b304c6ceda2bb5e 100644 (file)
@@ -17,6 +17,7 @@ let b:undo_ftplugin = "setl com< cms< fo<"
 setlocal comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\ %s
 setlocal formatoptions-=t formatoptions+=croql
 setlocal omnifunc=haskellcomplete#Complete
+setlocal iskeyword+='
 
 let &cpo = s:cpo_save
 unlet s:cpo_save