Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/languages/csharp.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export default function(hljs) {
var GENERIC_MODIFIER = {
begin: "<",
end: ">",
keywords: "in out"
keywords: "in out",
contains: [ TITLE_MODE ]
};
var TYPE_IDENT_RE = hljs.IDENT_RE + '(<' + hljs.IDENT_RE + '(\\s*,\\s*' + hljs.IDENT_RE + ')*>)?(\\[\\])?';
var AT_IDENTIFIER = {
Expand Down Expand Up @@ -177,13 +178,16 @@ export default function(hljs) {
},
{
className: 'function',
begin: '(' + TYPE_IDENT_RE + '\\s+)+' + hljs.IDENT_RE + '\\s*\\(', returnBegin: true,
begin: '(' + TYPE_IDENT_RE + '\\s+)+' + hljs.IDENT_RE + '\\s*(\\<.+\\>\\s*)?\\(', returnBegin: true,
Comment thread
joshgoebel marked this conversation as resolved.
Outdated
end: /\s*[{;=]/, excludeEnd: true,
keywords: KEYWORDS,
contains: [
{
begin: hljs.IDENT_RE + '\\s*\\(', returnBegin: true,
contains: [hljs.TITLE_MODE],
begin: hljs.IDENT_RE + '\\s*(\\<.+\\>\\s*)?\\(', returnBegin: true,
Comment thread
joshgoebel marked this conversation as resolved.
Outdated
contains: [
hljs.TITLE_MODE,
GENERIC_MODIFIER
],
relevance: 0
},
{
Expand Down