nvim-regexplainer icon indicating copy to clipboard operation
nvim-regexplainer copied to clipboard

FR: Support for lua and vimscript patterns

Open chrisgrieser opened this issue 2 years ago • 2 comments
trafficstars

Support for other forms of regex would be awesome – especially since as a nvim-user, you have to know vimscript patterns, lua patterns, and most likely js regex, it sometimes gets a bit confusing.

For lua patterns, I know there is this repo which visualizes lua patterns quite decently, maybe you could make use of that? https://github.com/GitSparTV/lua-patterns

chrisgrieser avatar Dec 13 '22 11:12 chrisgrieser

It's a great idea. I think it should be based on treesitter grammars

Lua patterns in particular would be more complicated to implement, because they don't share a grammar with regexp, and because lua is quite dynamic

bennypowers avatar Dec 14 '22 20:12 bennypowers

+1 for Lua regexes

dsully avatar Sep 25 '23 02:09 dsully