You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emacs version: GNU Emacs 29.4 (build 2, x86_64-w64-mingw32)
of 2024-07-05
Operating System: Windows 10
Evil version: 1.15.0
Evil installation type: MELPA
Graphical/Terminal: Graphical
Tested in a make emacs session (see CONTRIBUTING.md): No
Reproduction steps
Start Emacs
make sure that evil-ex-search-vim-style-regexp is set to t
Create a new buffer with the content
foo
bar
baz
Expected behavior
Run search with f\_.*ba
Match:
foo
bar
ba
In the background, the token is transpiled to Emacs Lisp RegEx \\(.\\|\n\\) or [^z-a] or something similar that does the trick
Compare the anything token from rx: It compiles to [^z-a]
Actual behavior
Can't parse the token \_. like Vim does, nothing is found
only workaround constructs are possible like an alternation with the f\(.\|\n\).*ba, because the dot itself doesn't match newline characters
The text was updated successfully, but these errors were encountered:
bartelmarkus
changed the title
Implement Vim RegEx token to match anything "\_."
[Feature] Support Vim RegEx token to match anything "\_."
Sep 17, 2024
Issue type
Environment
Emacs version: GNU Emacs 29.4 (build 2, x86_64-w64-mingw32)
of 2024-07-05
Operating System: Windows 10
Evil version: 1.15.0
Evil installation type: MELPA
Graphical/Terminal: Graphical
Tested in a
make emacs
session (see CONTRIBUTING.md): NoReproduction steps
evil-ex-search-vim-style-regexp
is set tot
Expected behavior
f\_.*ba
\\(.\\|\n\\)
or[^z-a]
or something similar that does the trickanything
token from rx: It compiles to[^z-a]
Actual behavior
f\(.\|\n\).*ba
, because the dot itself doesn't match newline charactersFurther notes
The original Vim feature is documented in
:h \_.
The text was updated successfully, but these errors were encountered: