You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Comment containing the word "event" after property breaks the rest of the file #115
publicclassFoo{// The word "event" in the comment below breaks highlighting in the rest// of the file. Adding or removing any characters in "event" such that// it no longer matches \bevent\b will restore highlighting.publicstringBar{get;set;}// comment comment event commentpublicstringBaz{get;set;}}
Activity
DustinCampbell commentedon May 9, 2018
Thanks for taking the time to file this issue! This is another case of #75.
DustinCampbell commentedon May 14, 2018
It may in fact be a challenge with the property pattern. I'll take a look.
Note that excluding comments from rules results in comments not being highlighted at all.
The reality is that regular expressions are a terrible way to syntax highlight a language. 😄
DustinCampbell commentedon May 14, 2018
It looks like the rule that's causing this behavior is right here: https://github.com/dotnet/csharp-tmLanguage/blob/master/src/csharp.tmLanguage.yml#L492. Commenting that fixes the issue, but introduces others.
Be a bit more restrictive in the negative lookahead for properties
DustinCampbell commentedon May 14, 2018
No problem. It was your comment about it being an issue for properties but not for fields that led me to the problematic rule. 😄