mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 21:22:00 +03:00
vim modeline regex should accept not one but "at least one" whitespace.
This commit is contained in:
parent
6740e3cc0c
commit
d168c75002
@ -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
|
||||
} }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user