V
V
Vasily Demin2018-03-21 00:47:14
vim
Vasily Demin, 2018-03-21 00:47:14

How to rewrite regex for vim?

There is a regex that looks for haskell function names, we need to rewrite it for vim.
Original expression:
^[az]+[ \w | ']\s*(?=::)
vim expression:
/^[az]\+[\w']*\s*\(::\)@=/
But unlike the original one, vim expression for some reason does not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SilentFl, 2018-03-29
@SilentFl

^[a-z_]\(\S\&[^,\(\)\[\]]\)*
took from here https://github.com/sdiehl/haskell-vim-proto/blob/m...
Maybe it's better to use a ready-made plugin? the same haskell-vim

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question