PetitParser 5 has some support for indentation-based parsing: https://github.com/petitparser/dart-petitparser/commit/d03b23bb99c7cf507f8f5f0a3b8dfc6691b2b68d This could be useful for improving parsing of some areas like list item bodies.