tree-sitter is wonderful, but it struggles if you try to parse its own output files. In fairness, parsing a multi-megabyte C file is hard. The C# parser has a parser.c file totalling 18MiB!