ziglang / zig-mode

Zig mode for Emacs
GNU General Public License v3.0
157 stars 54 forks source link

Handle multi-line if expressions better #79

Closed michaelbartnett closed 1 year ago

michaelbartnett commented 1 year ago

Fixes #78

Exclude a line from being treated as a continuing expression if it starts with else. I'm not sure where else in the grammar this would show up so it seemed like the straightforward approach to me. I don't have much experience writing indentation functions for modes though.

Also added quotes around ${EMACS} in run_tests.sh to make it easier to run the tests on windows (my Emacs is under "C:\Program Files").

joachimschmidt557 commented 1 year ago

Thanks a lot!