Control flow blocks in sections are sometimes folded wrong, because the keyword for and if are quite common in English language and therefore appear often in comments. The Lexer does not distinguish between comments and usual code, therefore for and if are used as folding heads, if they are used in comments.
This fix requires changing the lexer. The lexer shall now "ignore" the install section first and detect all syntax elements as before (with the small exception that it shall not detect regular commands but procedure commands). After the lexer reaches the <endinstall> keyword, the styling of the whole section shall be changed with the exception of the procedure keywords. Those can be used afterwards to apply the folding and indentation logic.
This fix was tested manually. No deviations detected. Bug fix implemented successfully.
Anonymous
Diff:
Diff:
Diff:
Related
Commit: [r683]
Diff: