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) Reference path in inheritance breaks highlighting #1947
Comments
What are you expecting that "System.Windows.Forms.Form" is a single title, or 4 titles separated by .s? |
This is because we don't think TITLEs can contain .s... or it could be that the space between them can contain dots and you have 4 titles, hence my question. {
beginKeywords: 'class interface', end: /[{;=]/,
illegal: /[^\s:,]/,
contains: [
hljs.TITLE_MODE,
hljs.C_LINE_COMMENT_MODE,
hljs.C_BLOCK_COMMENT_MODE
]
}, |
the class |
What are you expecting that "System.Windows.Forms.Form" is a single title, or 4 titles separated by .s? |
I'd think a single title... I think all the .s being different colors would be annoying. |
Sry for the late response. Maybe an example will help to clarify what the problem is. Here is my small quick and dirty test code: https://jsfiddle.net/sn5kd4ob/ The reference path breaks/disables the highlighting |
…lightjs#2378) * enh(csharp) add generic modifiers * enh(csharp) Allow reference path in class inheritance lists. Closes highlightjs#1947. * enh(csharp) Support `where` keyword as class constraint
The following snippet breaks the highlighting:
public class AgentTryout : System.Windows.Forms.Form { }
without reference path, it works as expected:
public class AgentTryout : Form { }
The text was updated successfully, but these errors were encountered: