-
Notifications
You must be signed in to change notification settings - Fork 750
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
csharp wrong highlighting using attributes with string params #1093
Comments
As you can see here, string arguments are not being highlighted when used inside an attribute: http://rouge.jneen.net/pastes/pD9W |
pyrmont
added a commit
to pyrmont/rouge
that referenced
this issue
May 19, 2019
The C# lexer generated `Name::Attribute` tokens for attributes. As discussed in rouge-ruby#1093, this caused attributes to be rendered incorrectly. This commit removes the rule that caused attributes to be rendered this way. It fixes rouge-ruby#1093.
This was being caused by this rule. I've submitted a fix that removes it. |
pyrmont
added a commit
that referenced
this issue
May 27, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As you can see the string sent in the Router attribute is wrongly encoded: http://rouge.jneen.net/pastes/xlA9
Example of code to reproduce the issue:
You can see a similar code on the official docs: https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-2.2&tabs=visual-studio#add-a-controller
The text was updated successfully, but these errors were encountered: