jakebathman / mysql-syntax

VS Code syntax support for MySQL
11 stars 5 forks source link

Comment Syntax #29

Open houghtonap opened 5 years ago

houghtonap commented 5 years ago

The comment syntax # is not highlighted in green, the comment color, as is the other alternate MySQL comment syntax forms of -- and /*...*/.

skupjoe commented 5 years ago

+1

Putting a "#" comment yields an "Incorrect Syntax" error.

jakebathman commented 5 years ago

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.

ronniegane commented 4 years ago

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; 

image