BrettWitty / TADS-3-Mode-for-Emacs

(Ancient) TADS3 mode for Emacs
2 stars 2 forks source link

Braces get auto-indented to the beginning of the line for functions in object or class definitions #5

Open alexispurslane opened 1 year ago

BrettWitty commented 1 year ago

Yeah okay, I can replicate. That's weird and just the code being insensitive to functions. I'll try to fix.

alexispurslane commented 1 year ago

I fixed this by making lone braces just inherit the indentation of their surroundings — previously the assumption was that braces alone on lines must have an indentation of zero — which seems harmless to me, but I'm not sure if it is, given I know little about TADS as of yet.