GoLand IDE (Jetbrains) support found a solution. Per their instructions 
change the following pattern:

(update it in *Preferences | Editor | TODO*)
\/(\/|\*)[ ]*\btodo\b(.|\n)*(\*\/|)

It should highlight multiline TODOs without additional two spaces on the 
next line:
// TODO something something something
// something else
var x int

This is working for me.
On Wednesday, April 19, 2023 at 7:06:46 PM UTC-7 Dan Kortschak wrote:

> On Wed, 2023-04-19 at 14:30 -0700, Ian Lance Taylor wrote:
> > 
> > If you give us more details perhaps there is some common ground
> > available.  In particular, a sequence of lines where each line is
> > indented will be treated as a code block, and not reformatted.
>
> Related, I'd like to reiterate the concerns with quote rewriting (filed
> here https://go.dev/issue/54312) which is an accessibility issue.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f69fd010-0b7a-46e2-955e-8268e70cdfc5n%40googlegroups.com.

Reply via email to