[vim/vim] Two engines pattern (PR #10439)

5 views
Skip to first unread message

Christian Brabandt

unread,
May 17, 2022, 3:43:14 PM5/17/22
to vim/vim, Subscribed

Currently, the pattern %#= is allowed everywhere, but only if it is at the start of the pattern, it will actually select the correct regexp engine.

However, Vim will happily accept a pattern like 'foo%#=2bar' but will interpret \%# as the current cursor position. So make the regexp a bit more strict and output an error, if the special atom \%#= is found anywhere but at the start of the pattern.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/10439

Commit Summary

  • dfc228d only allow \%#= at the start of the pattern
  • 8b7e9fc Add a test

File Changes

(5 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10439@github.com>

Christian Brabandt

unread,
May 18, 2022, 8:34:08 AM5/18/22
to vim/vim, Push

@chrisbra pushed 1 commit.

  • 6865cbc only allow \%#= at the start of the pattern


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10439/push/9916149993@github.com>

codecov[bot]

unread,
May 18, 2022, 8:50:40 AM5/18/22
to vim/vim, Subscribed

Codecov Report

Merging #10439 (6865cbc) into master (b1040dc) will increase coverage by 0.00%.
The diff coverage is 64.28%.

@@           Coverage Diff           @@

##           master   #10439   +/-   ##

=======================================

  Coverage   81.63%   81.63%           

=======================================

  Files         158      158           

  Lines      184714   184729   +15     

  Branches    41765    41767    +2     

=======================================

+ Hits       150789   150803   +14     

+ Misses      21436    21431    -5     

- Partials    12489    12495    +6     
Flag Coverage Δ
huge-clang-none 82.55% <57.14%> (-0.01%) ⬇️
linux 82.55% <57.14%> (-0.01%) ⬇️
mingw-x64-HUGE 0.00% <0.00%> (ø)
mingw-x64-HUGE-gui 78.04% <62.50%> (+0.01%) ⬆️
windows 76.82% <50.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/regexp_bt.c 87.40% <28.57%> (-0.18%) ⬇️
src/regexp_nfa.c 89.77% <100.00%> (+0.01%) ⬆️
src/sound.c 64.36% <0.00%> (-1.73%) ⬇️
src/libvterm/src/state.c 38.39% <0.00%> (-0.07%) ⬇️
src/channel.c 83.92% <0.00%> (-0.05%) ⬇️
src/version.c 84.16% <0.00%> (ø)
src/os_win32.c 57.05% <0.00%> (+0.07%) ⬆️
src/misc2.c 88.89% <0.00%> (+0.09%) ⬆️
src/ex_cmds.c 85.28% <0.00%> (+0.10%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1040dc...6865cbc. Read the comment docs.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10439/c1129965496@github.com>

Bram Moolenaar

unread,
May 18, 2022, 10:04:57 AM5/18/22
to vim/vim, Subscribed

Closed #10439 via 360da40.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10439/issue_event/6632743348@github.com>

Reply all
Reply to author
Forward
0 new messages