bennypowers / nvim-regexplainer

Describe the regexp under the cursor
627 stars 7 forks source link

FR: Support for lua and vimscript patterns #23

Open chrisgrieser opened 1 year ago

chrisgrieser commented 1 year ago

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

bennypowers commented 1 year ago

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

dsully commented 1 year ago

+1 for Lua regexes