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

Syntax highlighter doesn’t understand comments in token strings #493

Open
0xEAB opened this issue Dec 29, 2024 · 1 comment
Open

Syntax highlighter doesn’t understand comments in token strings #493

0xEAB opened this issue Dec 29, 2024 · 1 comment

Comments

@0xEAB
Copy link

0xEAB commented Dec 29, 2024

Apparently, the syntax highlighter thinks that this innocent single-quote apostrophe in the comment within the token string would open a character literal.

import std.stdio;

void main() {
	// comment (green)
	writeln(q{
		// When this function gets called, the this pointer isn't
	});
	// comment; highlighter thinks this is a character literal
	// oh' well
}

image

@0xEAB
Copy link
Author

0xEAB commented Dec 29, 2024

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