erlang mode bug fixes

fixes some minor bugs in the erlang mode highlighter & indenter.