4 ms·
They use tree-sitter https://tree-sitter.github.io/tree-sitter/ https://tree-sitter.github.io/tree-sitter/ It's ok with errors in AST and just marks such nodes
by ris58h 5y ago
They use tree-sitter https://tree-sitter.github.io/tree-sitter/ https://tree-sitter.github.io/tree-sitter/
It's ok with errors in AST and just marks such nodes as invalid.
There is a long (42 minutes) but worth to watch talk about tree-sitter https://www.youtube.com/watch?v=a1rC79DHpmY https://www.youtube.com/watch?v=a1rC79DHpmY
Or the shorter version (20 minutes) https://www.youtube.com/watch?v=0CGzC_iss-8 https://www.youtube.com/watch?v=0CGzC_iss-8