> I fixed \F yesterday.  Hmm, but you say you include patch 981.
> What is the Vim command to reproduce this?
[1]
 
> >   let reg = 'ú\Z'
> >   let t = ""
> >   echo matchlist('\%#=1'.reg, t)
> >   echo matchlist('\%#=2'.reg, t)
> Isn't this the same for the old and the new engine?
right, I can no loger reproduce the "" case for whatever reason !?
strange. but t = "1" is still valid [2]

> Timing issue?


how to reproduce [1] and [2]?

run in Vim uncommenting either case:

python << EOF

def case(a,b):
  f = open("/tmp/VIM_REGEX_TEST_STRINGS","w")
  f.write(a)
  f.close()
  f = open("/tmp/VIM_REGEX_TEST","w")
  f.write(b)
  f.close()

# case 1
# case("\0a", "\\_F")

# case 2
case("1", "ú\\Z")
EOF

fun! RegexTest() abort
  echom 'starting'
  for regex in readfile('/tmp/VIM_REGEX_TEST')
    for str in readfile('/tmp/VIM_REGEX_TEST_STRINGS')
      try
        try
          let old = matchlist(str, '\%#=1'.regex)
        catch /.*/
          let old = ['error']
        endtry
        try
          let new = matchlist(str, '\%#=2'.regex)
        catch /.*/
          let new = ['error']
        endtry
        if old == new || old == ['error'] || new == []
          continue
        else
          echom 'bad =='
          echom 'new: '.string(new)
          echom 'old: '.string(old)
          echom  'returning 0'
          return '0'
        endif
      catch /.*/
        echoe v:exception
        echom  'returning exception 0'
        return '0'
      endtry
    endfor
  endfor
  echom  'returning 1'
  return '1'
endf

echo RegexTest()

-- 
-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui