ALSchwalm / janet-mode

A major mode for the janet programming language: https://janet-lang.org/
GNU General Public License v3.0
46 stars 14 forks source link

broken indentation of eachk and eachp #10

Open uvtc opened 3 years ago

uvtc commented 3 years ago

Indentation of next line after (eachk ... and (eachp ... should be the same as it does for (each ... (indents 2 spaces in).

sogaiu commented 3 years ago

It may be that addressing this is a matter of modifying janet--set-indentation: https://github.com/ALSchwalm/janet-mode/blob/2f5bcabcb6953e1ed1926ba6a2328c453e8b4ac7/janet-mode.el#L368-L396

sogaiu commented 3 years ago

For reference, spork/fmt has the following bit for "2-indent forms": https://github.com/janet-lang/spork/blob/962b81551b3ca9d0b39a1ceb871128ab8064f84b/spork/fmt.janet#L80-L88