+2

Fix increaseIndentPattern for Erlang

kutu 6 years ago • updated 6 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