Our SynaxParser, as used within the SyntaxBuilder when a .tcs file is changed, should use the incremental parser instead of the plain ANTLR parser.
We can then store the resulting TextBlocks model and users don't loose their formatting information and comments when modifying the model representation of the syntax. When saving the model information we can then overwrite the .tcs file with the textual content of the modified model.
Our SynaxParser, as used within the SyntaxBuilder when a .tcs file is changed, should use the incremental parser instead of the plain ANTLR parser.
We can then store the resulting TextBlocks model and users don't loose their formatting information and comments when modifying the model representation of the syntax. When saving the model information we can then overwrite the .tcs file with the textual content of the modified model.