Skip to content

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

Open
@0xEAB

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions