top | item 32392798

(no title)

sedachv | 3 years ago

Languages where blocks are indicated by indentation are not context-free (you have to keep the current and previous line indentation level as state). Everything about them is more tedious because you can't do structured editing.

discuss

order

User23|3 years ago

You color them with virtual parentheses and then handle everything else sanely. Parinfer is a good example of how that logic looks.

taeric|3 years ago

Apologies if I was unclear, but this is what I meant. In whitespace languages, you have to see the context.

That said, you can probably make dinner structural editing work roughly the same. Might benefit from highlighting to indicate current scope.