Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update C# TextMate grammar with support for #r and #load directives #31405

Merged
merged 1 commit into from
Aug 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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