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

Wrong highlighting in C# mode : 3 slashes within a string rendered as comment #1091

Closed
sdkcarlos opened this issue Jan 30, 2017 · 1 comment

Comments

@sdkcarlos
Copy link

Using the following code snippet and highlight mode C# (language-csharp):

string HTML_FILEPATH = "C:/Users/sdkca/Desktop/example.html";

// and set it up using fluent notation too
configuration
.SetAllowLocalContent(true)
.SetPageUri(@"file:///" + HTML_FILEPATH);

Will produce the following result:

bad_highlighting

The 2 slashes are interpreted as a comment although it's within a string in the SetPageUri method. Neither using .SetPageUri("file://////" + HTML_FILEPATH); (without @ and escaped slashes) seems to help.

It happens in the Test drive website too.

@sdkcarlos sdkcarlos changed the title Wrong highlighting C# mode : 3 slashes within a string rendered as comment Wrong highlighting in C# mode : 3 slashes within a string rendered as comment Jan 30, 2017
@Golmote Golmote closed this as completed in dfb6f17 Feb 7, 2017
@Golmote
Copy link
Contributor

Golmote commented Feb 7, 2017

Hi! Thanks for reporting. It should be fixed now.

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

2 participants