Hacker News new | ask | show | jobs
by afiori 1322 days ago
The missing feature in an IDE to make this even better is to have LSP-aware regex tokens.

Let say something like /(?@<functionDef>)toErr/ that would match only the string "toErr" when it is in a function declaration/definition (decided by the LSP integration) rather than an invocation or a docstring