Skip to content

Commit

Permalink
519-hover---it-does-not-add-one-line-comments-as-documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobc committed Jul 2, 2010
1 parent be46ddd commit 493ff97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions org.erlide.kernel.ide/src/parsing/erlide_noparse.erl
Expand Up @@ -702,11 +702,11 @@ get_function_comment(F, []) ->
F;
get_function_comment(#function{name_pos={{Line, _}, _}}=F,
[#token{last_line=LastLine, value=Value} | _])
when LastLine+1=:=Line; LastLine+2=:=Line->
when LastLine+1=:=Line; LastLine+2=:=Line; LastLine+3=:=Line->
F#function{comment=erlide_text:strip_percents_and_spaces(Value)};
get_function_comment(#function{name_pos={{Line, _}, _}}=F,
[#token{line=LastLine, last_line=undefined, value=Value} | _])
when LastLine+1=:=Line; LastLine+2=:=Line->
[#token{line=LastLine, last_line=u, value=Value} | _])
when LastLine+1=:=Line; LastLine+2=:=Line; LastLine+3=:=Line->
F#function{comment=erlide_text:strip_percents_and_spaces(Value)};
get_function_comment(F, [_ | Rest]) ->
get_function_comment(F, Rest).
Expand Down

0 comments on commit 493ff97

Please sign in to comment.