Skip to content

Commit 05d3443

Browse files
Update C# TextMate grammar with support for #r and #load directives
1 parent 597caf0 commit 05d3443

1 file changed

Lines changed: 45 additions & 1 deletion

File tree

extensions/csharp/syntaxes/csharp.tmLanguage.json

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/e7f564b60e08e6d8400d2512918c2ff5ccbf4cec",
7+
"version": "https://github.com/dotnet/csharp-tmLanguage/commit/2f2152632650d427e99e261f093d52b807abc72d",
88
"name": "C#",
99
"scopeName": "source.cs",
1010
"fileTypes": [
@@ -3816,6 +3816,12 @@
38163816
{
38173817
"include": "#preprocessor-endregion"
38183818
},
3819+
{
3820+
"include": "#preprocessor-load"
3821+
},
3822+
{
3823+
"include": "#preprocessor-r"
3824+
},
38193825
{
38203826
"include": "#preprocessor-line"
38213827
},
@@ -3886,6 +3892,44 @@
38863892
}
38873893
}
38883894
},
3895+
"preprocessor-load": {
3896+
"begin": "\\b(load)\\b",
3897+
"beginCaptures": {
3898+
"1": {
3899+
"name": "keyword.preprocessor.load.cs"
3900+
}
3901+
},
3902+
"end": "(?=$)",
3903+
"patterns": [
3904+
{
3905+
"match": "\\\"[^\"]*\\\"",
3906+
"captures": {
3907+
"0": {
3908+
"name": "string.quoted.double.cs"
3909+
}
3910+
}
3911+
}
3912+
]
3913+
},
3914+
"preprocessor-r": {
3915+
"begin": "\\b(r)\\b",
3916+
"beginCaptures": {
3917+
"1": {
3918+
"name": "keyword.preprocessor.r.cs"
3919+
}
3920+
},
3921+
"end": "(?=$)",
3922+
"patterns": [
3923+
{
3924+
"match": "\\\"[^\"]*\\\"",
3925+
"captures": {
3926+
"0": {
3927+
"name": "string.quoted.double.cs"
3928+
}
3929+
}
3930+
}
3931+
]
3932+
},
38893933
"preprocessor-region": {
38903934
"match": "\\b(region)\\b\\s*(.*)(?=$)",
38913935
"captures": {

0 commit comments

Comments
 (0)