CestDiego / nand2tetris.el

Major Mode for HDL files in nand2tetris.
42 stars 11 forks source link

Update indentation rules #7

Closed jsoo1 closed 7 years ago

jsoo1 commented 7 years ago
  1. Now something like the following will indent automatically so that people who want to adhere to 80 column lines can use the mode.
Mux(
    a=in,
    b=s0,
    sel=r0,
    out=out
);
  1. Remove the CHIP regex and replace instead with the opening curly brace for a more general indentation rule.

  2. Add a missing (previously undefined) variable - nand2tetris-1 so the indentation works when called.

  3. Add initial value to cur-indented for reading clarity.

CestDiego commented 7 years ago

This looks pretty good. Thanks! :D

jsoo1 commented 7 years ago

Thanks for the snappy merge 👍