vendor/assets/javascripts/prism-csharp.js in highlighting-0.1.2 vs vendor/assets/javascripts/prism-csharp.js in highlighting-0.1.3
- old
+ new
@@ -6,9 +6,17 @@
],
'number': /\b-?(0x[\da-f]+|\d*\.?\d+f?)\b/i
});
Prism.languages.insertBefore('csharp', 'keyword', {
+ 'generic-method': {
+ pattern: /[a-z0-9_]+\s*<[^>\r\n]+?>\s*(?=\()/i,
+ alias: 'function',
+ inside: {
+ keyword: Prism.languages.csharp.keyword,
+ punctuation: /[<>(),.:]/
+ }
+ },
'preprocessor': {
pattern: /(^\s*)#.*/m,
lookbehind: true,
alias: 'property',
inside: {