mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-27 13:44:32 +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" %{
|
def modeline-parse -docstring "Read and interpret vi-format modelines at the beginning/end of the buffer" %{
|
||||||
try %{ eval -draft %{
|
try %{ eval -draft %{
|
||||||
exec \%s\`|.\'<ret> %opt{modelines}k <a-x> %opt{modelines}X \
|
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
|
eval -draft -itersel modeline-parse-impl
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user