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 highlighting bug for fields #757

Closed
natemcmaster opened this issue Sep 14, 2016 · 2 comments
Closed

Syntax highlighting bug for fields #757

natemcmaster opened this issue Sep 14, 2016 · 2 comments

Comments

@natemcmaster
Copy link

Environment data

dotnet --info output: n/a
VS Code version: 1.5.2
C# Extension version: 1.4.1

Steps to reproduce

public class Test
{
    public string _field1 = Path.Combine("",method());
    public string _field2 = Path.Combine("", method());
    public string _field3 = "";
}

image

Highlighter gets into an incorrect state trying to highlight _field2.

@DustinCampbell
Copy link
Member

Interesting. 😄. Usually the regular expressions fail at the starts/ends of tokens. cc @ivanz.

@ivanz
Copy link
Contributor

ivanz commented Sep 23, 2016

Hmm I am not sure what's going on here, because the "variable" regex (https://github.com/OmniSharp/omnisharp-vscode/blob/master/syntaxes/csharp.json#L85) seems fine outside of the grammar file: http://regexr.com/3e9vo

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