This commit changes a few things to get indenting working in multiline
comments:
Make go-indentation-at-point return something when inside multiline
comments. It basically guesses an indent based on the previous line
or start of comment, along with a special case to line up all the
"*" if you are making comment art. I didn't think it was worth it
to support all of gofmt's multiline comment behavior.
Don't ignore comments in go-mode-indent-line.
Tweak go-mode-indent-line to not uses tabs when indenting beyond
the "/*" in multiline comments. If you use tabs, gofmt ends up
changing things around in unexpected ways.
Tweak our electric indent function to trigger completion after
newline within comments, and after typing the closing "*/".
This commit changes a few things to get indenting working in multiline comments:
Make go-indentation-at-point return something when inside multiline comments. It basically guesses an indent based on the previous line or start of comment, along with a special case to line up all the "*" if you are making comment art. I didn't think it was worth it to support all of gofmt's multiline comment behavior.
Don't ignore comments in go-mode-indent-line.
Tweak go-mode-indent-line to not uses tabs when indenting beyond the "/*" in multiline comments. If you use tabs, gofmt ends up changing things around in unexpected ways.
Tweak our electric indent function to trigger completion after newline within comments, and after typing the closing "*/".
Fixes #369.