barklan / inline_sql_syntax

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

Fix: Golang didn't support MariaDB SQL comment syntax #118

Closed shane-tw closed 6 months ago

shane-tw commented 6 months ago

Hi.

value := `--anything
testing 123
`

was being seen as SQL, whereas:

value := `-- sql
testing 123
`

wasn't being seen as SQL. It was missing the whitespace support that Lua has. MariaDB requires a whitespace after the --.