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 hn newest 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. ArneBab|3 years ago Do you mean highlighting like this? https://www.draketo.de/software/wisp-mode-highlighting-seman...Many parts of structural editing (but not all) become simple indentation shifting with indentation-sensitive languages. load replies (1)
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. ArneBab|3 years ago Do you mean highlighting like this? https://www.draketo.de/software/wisp-mode-highlighting-seman...Many parts of structural editing (but not all) become simple indentation shifting with indentation-sensitive languages. load replies (1)
ArneBab|3 years ago Do you mean highlighting like this? https://www.draketo.de/software/wisp-mode-highlighting-seman...Many parts of structural editing (but not all) become simple indentation shifting with indentation-sensitive languages. load replies (1)
User23|3 years ago
taeric|3 years ago
That said, you can probably make dinner structural editing work roughly the same. Might benefit from highlighting to indicate current scope.
ArneBab|3 years ago
Many parts of structural editing (but not all) become simple indentation shifting with indentation-sensitive languages.