Merge remote-tracking branch 'nochiel/nochiel-modelines'

This commit is contained in:
Maxime Coste 2017-10-23 16:34:17 +08:00
commit 30ce5a0055

View File

@ -96,7 +96,7 @@ def -hidden modeline-parse-impl %{
def modeline-parse -docstring "Read and interpret vi-format modelines at the beginning/end of the buffer" %{
try %{ eval -draft %{
exec \%s\`|.\'<ret> %opt{modelines}k <a-x> %opt{modelines}X \
s^[^\s]*?\s(vim?|kak(oune)?):\s?[^\n]+<ret> <a-x>
s^\S*?\s+?(vim?|kak(oune)?):\s?[^\n]+<ret> <a-x>
eval -draft -itersel modeline-parse-impl
} }
}