+2

Fix increaseIndentPattern for Erlang

kutu 13 years ago updated 13 years ago 1
no auto-indent after "->\n"

pattern should be:

^[^%]*((\b(if|case|receive|after|fun|try|catch|begin|query)\b(?!.*\b(end)\b.*))|(->(\s*%.*)?$))
another problem, if one of this "if|case|receive|after|fun|try|catch|begin|query" placed between quotes, we get unnecessary auto-indet, like this:
    io:format("test if test", []),\n
        |

but i dont know how to resolve this