barklan / inline_sql_syntax

Highlight and lint inline SQL strings.
https://marketplace.visualstudio.com/items?itemName=qufiwefefwoyn.inline-sql-syntax
MIT License
57 stars 24 forks source link

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

Open hansinator opened 1 year ago

hansinator commented 1 year ago

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