Skip to content

Commit

Permalink
add Rust multiline support
Browse files Browse the repository at this point in the history
  • Loading branch information
kevb34ns committed Sep 19, 2017
1 parent 0c7e17e commit 63c5d9f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ You can insert single line comment blocks for languages with `//`, `#`, or `;` s

| Comment Style | Language Support |
| ------- | ------- |
| `/** */` | C, C++, C#, CSS, Groovy, Java, Less, Objective C/C++, PHP, Sass, Swift |
| `/** */` | C, C++, C#, CSS, Groovy, Java, Less, Objective C/C++, PHP, Sass, Rust, Swift |
| `/*! */` | C, C++ |
| `//`, `///` | C, C++, C#, F#, Go, Groovy, Java, JavaScript, Less, Objective C/C++, PHP, Rust, Sass, Swift, TypeScript |
| `#` | CoffeeScript, Dockerfile, Makefile, Perl, PowerShell, Python, R, Ruby |
Expand Down
25 changes: 25 additions & 0 deletions language-configuration/language-configuration.rust.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"comments": {
"lineComment": "//",
"blockComment": [ "/*", "*/" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["/**", " */"]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
1 change: 1 addition & 0 deletions language-configuration/multi-line-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"objective-c",
"objective-cpp",
"php",
"rust",
"scss",
"swift"
]
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@
{
"id": "swift",
"configuration": "./language-configuration/language-configuration.swift.json"
},
{
"id": "rust",
"configuration": "./language-configuration/language-configuration.rust.json"
}
],
"keybindings": [
Expand Down

0 comments on commit 63c5d9f

Please sign in to comment.