PR #59 adds lightweight auto indentation based on the current line and programming language. But the current implementation intentionally avoids syntax parsing, which leaves several cases that should be handled separately:
- Python block statements with trailing comments:
if ready: # explain
- Delimiters inside trailing comments:
run(); // setup {
- Continuation lines inside multi-line block comments
- Code following a closed block comment on the same line:
/* guard */ if (ready) {
A follow-up could introduce a dedicated language-aware helper instead of expanding the current regular expressions with more special cases.
PR #59 adds lightweight auto indentation based on the current line and programming language. But the current implementation intentionally avoids syntax parsing, which leaves several cases that should be handled separately:
if ready: # explainrun(); // setup {/* guard */ if (ready) {A follow-up could introduce a dedicated language-aware helper instead of expanding the current regular expressions with more special cases.