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

C# syntax highlighting broken around literal strings @"..." #316

Closed
af4jm opened this issue May 12, 2016 · 2 comments
Closed

C# syntax highlighting broken around literal strings @"..." #316

af4jm opened this issue May 12, 2016 · 2 comments

Comments

@af4jm
Copy link

af4jm commented May 12, 2016

Not sure what the heck it's doing, but sometimes it ignores @" and sometimes it doesn't.
Attached is screen shot showing bogus highlighting and .cs source file used to create that screen shot (extension changed to .txt to enable upload).

Not sure if this belongs here or in VS Code. It's issue 6325 over there, duplicating it here by suggestion.

SharedConstants.cs.txt
vscodeissue-csliteralstrings

Note that it highlights correct in both VS15 & VS13

@bonza
Copy link

bonza commented Dec 30, 2016

I'm not sure it is the same one, but looks pretty similar

  • VSCode Version: Code 1.8.1 (ee428b0eead68bf0fb99ab5fdc4439be227b6281, 2016-12-19T14:49:23.350Z)
  • OS Version: Windows_NT ia32 10.0.14393
  • Extensions:
Extension Author Version
githistory donjayamanne 0.1.4
csharp ms-vscode 1.6.2
Spell seanmcbreen 0.9.1

Steps to Reproduce:

  1. Create cs file
  2. Paste following code:
public class Name
{
    private readonly string initSportMessageFormatString = "line1"
        + "F;line2";
    private int key;
    public int MyProperty { get; set; }
}

Result:
vscode csharpsyntaxhighlighter

@DustinCampbell DustinCampbell added this to the 1.7 milestone Jan 7, 2017
@DustinCampbell DustinCampbell self-assigned this Jan 7, 2017
@DustinCampbell
Copy link
Member

This should look much better in the next release:

image

image

image

image

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

No branches or pull requests

3 participants