Open houghtonap opened 5 years ago
+1
Putting a "#" comment yields an "Incorrect Syntax" error.
Hey, I'm not sure why this would be happening with this extension. Could you give me a code sample that reproduces this error? #
comment syntax seems supported and working as expected for me.
I had this same problem and found the cause - another extension I had installed. Removing this extension allows # comments to work. The extension is SQLTools by Matheus Teixeira https://github.com/mtxr/vscode-sqltools
Here's a quick example of what it looked like before
-- This comment is highlighted
# This comment is not
/*
This comment block is highlighted
*/
SELECT id, name -- This comment works
FROM User # this comment does not
WHERE age > 25;
The comment syntax
#
is not highlighted in green, the comment color, as is the other alternate MySQL comment syntax forms of--
and/*...*/
.