Guido van Rossum wrote:
Would this be enforced in the grammar or by the lexer? Since you say
you expect the indentation to be enforced, that suggests it would be
done by the grammar,

I think it could be done by having the lexer enter a mode
where it swallows a newline that is followed by an indentation
to a level greater than the starting level of the construct.
Then no change would be needed to the grammar.

--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to