It's surprisingly fiddly to parse unfinished multiline expressions in a REPL.
In Garden, my toy language, the parser distinguishes 'incomplete' from other others, so I can keep appending text and re-parsing until something useful comes out.
miniblog.
Related Posts
I'm adding Erlang support for difftastic! The basic diffing works, but I'm still tweaking syntax highlighting.
The grammar distinguishes between "strings" and 'atoms', but I'm not sure if I should highlight both the same way.
I've learnt a little hg recently, and I really like how it distinguishes local branches that haven't been released yet. With git, a local branch is not shown as diverging from the upstream trunk!
Mercurial has strictly more information here with its notion of phases.


