runtime(script.vim): make strace ft check less strict (#13482)

Commit: 
https://github.com/vim/vim/commit/2f54c13292af053ec00c18e5fded87b1bc602822
Author: Jiri Slaby <[email protected]>
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) <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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
 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qzCHC-002MyW-2c%40256bit.org.

Raspunde prin e-mail lui