Skip to content

Commit

Permalink
Merge pull request #31405 from DustinCampbell/update-csharp-grammer
Browse files Browse the repository at this point in the history
Update C# TextMate grammar with support for #r and #load directives
  • Loading branch information
aeschli authored Aug 11, 2017
2 parents d38f712 + 05d3443 commit 3e27c42
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion extensions/csharp/syntaxes/csharp.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/e7f564b60e08e6d8400d2512918c2ff5ccbf4cec",
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/2f2152632650d427e99e261f093d52b807abc72d",
"name": "C#",
"scopeName": "source.cs",
"fileTypes": [
Expand Down Expand Up @@ -3816,6 +3816,12 @@
{
"include": "#preprocessor-endregion"
},
{
"include": "#preprocessor-load"
},
{
"include": "#preprocessor-r"
},
{
"include": "#preprocessor-line"
},
Expand Down Expand Up @@ -3886,6 +3892,44 @@
}
}
},
"preprocessor-load": {
"begin": "\\b(load)\\b",
"beginCaptures": {
"1": {
"name": "keyword.preprocessor.load.cs"
}
},
"end": "(?=$)",
"patterns": [
{
"match": "\\\"[^\"]*\\\"",
"captures": {
"0": {
"name": "string.quoted.double.cs"
}
}
}
]
},
"preprocessor-r": {
"begin": "\\b(r)\\b",
"beginCaptures": {
"1": {
"name": "keyword.preprocessor.r.cs"
}
},
"end": "(?=$)",
"patterns": [
{
"match": "\\\"[^\"]*\\\"",
"captures": {
"0": {
"name": "string.quoted.double.cs"
}
}
}
]
},
"preprocessor-region": {
"match": "\\b(region)\\b\\s*(.*)(?=$)",
"captures": {
Expand Down

0 comments on commit 3e27c42

Please sign in to comment.