Skip to content

Commit 2f54c13

Browse files
jirislabyJiri Slaby (SUSE)
andauthored
runtime(script.vim): make strace ft check less strict (#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) <jirislaby@kernel.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 33c1da7 commit 2f54c13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/autoload/dist/script.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def DetectFromText(line1: string)
369369

370370
# Strace
371371
# inaccurate fast match first, then use accurate slow match
372-
elseif (line1 =~ 'execve(' && line1 =~ '^[0-9:.]* *execve(')
372+
elseif (line1 =~ 'execve(' && line1 =~ '^[0-9:. ]*execve(')
373373
|| line1 =~ '^__libc_start_main'
374374
setl ft=strace
375375

0 commit comments

Comments
 (0)