Skip to content

Commit

Permalink
Merge pull request #191 from DustinCampbell/ivanz-fix-89
Browse files Browse the repository at this point in the history
Improved generic method and parameters syntax highlighting
  • Loading branch information
DustinCampbell committed Apr 15, 2016
2 parents a29e1aa + 8adbbe7 commit 0f89ee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntaxes/csharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@
"include": "#builtinTypes"
},
{
"begin": "([\\w.]+)\\s*\\(",
"begin": "([\\w]+\\s*(?:<[\\w<>\\s,`?]*>)?)\\s*\\(",
"beginCaptures": {
"1": {
"name": "entity.name.function.cs"
Expand Down Expand Up @@ -502,7 +502,7 @@
]
},
"parameters": {
"begin": "\\b(ref|params|out)?\\s*\\b([\\w.\\[\\]]+)\\s+(\\w+)\\s*(=)?",
"begin": "\\b(ref|params|out)?\\s*\\b([\\w?\\[\\]]+(?:\\s*<.*?>)?)\\s+(\\w+)\\s*(=)?",
"beginCaptures": {
"1": {
"name": "storage.type.modifier.cs"
Expand Down

0 comments on commit 0f89ee4

Please sign in to comment.