inline_sql_syntax icon indicating copy to clipboard operation
inline_sql_syntax copied to clipboard

Erroneous detection of -- as comment (breaks golang code completion)

Open hansinator opened this issue 3 years ago • 0 comments

The -- in the referenced line is detected as the start of an SQL comment inside a golang annotation string which effectively swallows the closing ". This breaks the golang source interpretation, flagging large parts of the source as string.

Offending line: https://github.com/immune-gmbh/agent/blob/v3.8.10/cmd/main.go#L73

image

hansinator avatar Jan 10 '23 14:01 hansinator