terralang / terra

Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
terralang.org
Other
2.68k stars 196 forks source link

Terra mode for Emacs #179

Open elliottslaughter opened 8 years ago

elliottslaughter commented 8 years ago

I have created a Terra mode for Emacs (based on lua-mode), available at the link below. I'm including this here to make this available to other users, particularly because (contrary to #108) handling indentation properly in Lua (and therefore Terra) is somewhat tricky and thus the resulting code is more work than you might expect. I've done my best to handle the basic Terra constructs and have field-tested the mode on my codebase, but if there are any bugs I'm happy to accept patches at the repo below.

https://github.com/StanfordLegion/terra-mode

I wonder also if it would be useful to have a list of available editor modes? That might help people looking for editor support for Terra.

There is also an el-get style recipe available here, for those who might be interested:

https://bitbucket.org/elliottslaughter/econf/raw/421dd7b0a9588c80a125cec24c7b3ee72f36a74d/recipes/terra-mode.rcp

zdevito commented 8 years ago

A list of editor modes would be useful. The best place might be on the website somewhere (https://github.com/zdevito/terra/tree/gh-pages) if you want to add it. Maybe to the end of the getting started guide?