NFA regression on split()

56 views
Skip to first unread message

David Fishburn

unread,
May 21, 2013, 9:05:29 PM5/21/13
to vim_dev
Using 7.3.1004 on Win 7 64 bit.

gvim -u NONE -U NONE --noplugins

:set re=0
:echo split(" TBD NOTE XXX FIXME TODO \n")
['TBD', 'NOTE', 'XXX', 'FIXME', 'TODO', '
'] 

:set re=1
:echo split(" TBD NOTE XXX FIXME TODO \n")
['TBD', 'NOTE', 'XXX', 'FIXME', 'TODO'] 

This is a distilled case, it is affecting the results from the autoload/syntaxcomplete.vim plugin.

David

Bram Moolenaar

unread,
May 22, 2013, 5:18:56 PM5/22/13
to David Fishburn, vim_dev
I think patch 1005 fixed this as well. The matching of line breaks was
implemented in a wrong way. Hopefully my solution fixes many patterns
that match a line break.

--
Looking at Perl through Lisp glasses, Perl looks atrocious.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages