weggli icon indicating copy to clipboard operation
weggli copied to clipboard

Add flag to warn about parse errors / potentially missed matches

Open felixwilhelm opened this issue 4 years ago • 0 comments

While tree-sitter's error recovery is pretty good for most targets, macro heavy code can lead to parsing errors and missed results. We should add an optional flag to surface statistics about the amount of parse errors.

Checking if any query identifiers occur inside the error-range is probably a good heuristic to warn about potentially missed matches.

felixwilhelm avatar Oct 08 '21 12:10 felixwilhelm