Hierarchical Nesting: StreamParser into lezer grammar


I am writing a lezer grammar for the klipper config file. My current problem is that in some places jinja2 code blocks can be used. So I thought about hierarchical nesting but there is only a legacy-mode for jinja2. Is there any option to adapt the mixed-language example to mixin a StreamParser into a Lezer Parser?

Yes, a StreamLanguage instance has a parser property that you can pass as a nested parser in a parseMixed callback.