|
|
|
|
|
by yawpitch
979 days ago
|
|
It would be pretty trivial to write an AST visitor that would treat each new indentation level as an “inside [function|while|if|etc]” … that’s going to handle your already syntactically correct code. Bit harder to deal with syntax errors and mixed indentation, but if there’s a way to tell a sighted user about it there’s a way to tell a not-sighted one. Assuming you care enough about humans to do so, mind. |
|