Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres doesn't support # style line comments #23

Open
doekman opened this issue Jul 13, 2017 · 0 comments
Open

Postgres doesn't support # style line comments #23

doekman opened this issue Jul 13, 2017 · 0 comments

Comments

@doekman
Copy link

doekman commented Jul 13, 2017

Postgres doesn't support # style line comments, only -- style.

So I commented out the following within SQL.tmLanguage:

{	begin = '(^[ \t]+)?(?=#)';
	end = '(?!\G)';
	beginCaptures = { 1 = { name = 'punctuation.whitespace.comment.leading.sql'; }; };
	patterns = (
		{	name = 'comment.line.number-sign.sql';
			begin = '#';
			end = '\n';
			beginCaptures = { 0 = { name = 'punctuation.definition.comment.sql'; }; };
		},
	);
},

This is a small difference with MySQL I guess. Another difference: in Postgres "--test" is a comment, while in MySQL it is not. Two dashes need to be followed by a space or a control character.

This is a small issue, but I think it's worth looking at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant