Correctly handle Erlang comments

Erlangers tend to use multi-comment-starters to denote different types of comments, i.e. inline-, function- or header-comments. e.g:
```erlang
%%% @doc Hi!
-module(hi).

%%@doc Function x
function x() -> y.
```
This commit supports one or many `%`