Skip to content

Commit

Permalink
Include C# textmate grammar. Fixes #19469
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Feb 8, 2017
1 parent 2cf9b32 commit 0fa326c
Show file tree
Hide file tree
Showing 7 changed files with 5,945 additions and 345 deletions.
10 changes: 10 additions & 0 deletions extensions/csharp/OSSREADME.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
[
{
"name": "dotnet/csharp-tmLanguage",
"version": "0.1.0",
"license": "MIT",
"repositoryURL": "https://github.com/dotnet/csharp-tmLanguage",
"description": "The file syntaxes/csharp.tmLanguage.json was derived from https://github.com/dotnet/csharp-tmLanguage"
}
]
27 changes: 27 additions & 0 deletions extensions/csharp/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"comments": {
"lineComment": "//",
"blockComment": ["/*", "*/"]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
{ "open": "/*", "close": " */", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["<", ">"],
["'", "'"],
["\"", "\""]
]
}
35 changes: 35 additions & 0 deletions extensions/csharp/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "csharp",
"version": "0.1.0",
"publisher": "vscode",
"engines": {
"vscode": "0.10.x"
},
"scripts": {
"update-grammar": "node ../../build/npm/update-grammar.js dotnet/csharp-tmLanguage grammars/csharp.tmLanguage ./syntaxes/csharp.tmLanguage.json"
},

"contributes": {
"languages": [
{
"id": "csharp",
"extensions": [
".cs",
".csx"
],
"aliases": [
"C#",
"csharp"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "csharp",
"scopeName": "source.cs",
"path": "./syntaxes/csharp.tmLanguage.json"
}
]
}
}
Loading

0 comments on commit 0fa326c

Please sign in to comment.