runtime(script.vim): make strace ft check less strict (#13482)
Commit:
https://github.com/vim/vim/commit/2f54c13292af053ec00c18e5fded87b1bc602822
Author: Jiri Slaby <
jiri...@gmail.com>
Date: Sat Nov 4 09:39:54 2023 +0100
runtime(script.vim): make strace ft check less strict (
https://github.com/vim/vim/issues/13482)
Strace output, depending on parameters (-ttf this time), can dump both
times and pid:
1038 07:14:20.959262 execve("./e.py", ["./e.py"], 0x7ffca1422840 /* 51 vars */) = 0 <0.000150>
So loose the regexp matching this, so that the above is matched too.
Fixes #13481.
Co-authored-by: Jiri Slaby (SUSE) <
jiri...@kernel.org>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim
index 8de8296ee..1685093d5 100644
--- a/runtime/autoload/dist/script.vim
+++ b/runtime/autoload/dist/script.vim
@@ -369,7 +369,7 @@ def DetectFromText(line1: string)
# Strace
# inaccurate fast match first, then use accurate slow match
- elseif (line1 =~ 'execve(' && line1 =~ '^[0-9:.]* *execve(')
+ elseif (line1 =~ 'execve(' && line1 =~ '^[0-9:. ]*execve(')
|| line1 =~ '^__libc_start_main'
setl ft=strace