Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 3d9db51

Browse files
authored
Merge pull request #55 from rubyide/dropAutoClosingPairs
Auto Closing Pairs causes settings load to fail
2 parents a2ce0c5 + 2d1739e commit 3d9db51

File tree

3 files changed

+30
-27
lines changed

3 files changed

+30
-27
lines changed

language-configuration.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"comments": {
3+
"lineComment": "#",
4+
"blockComment": ["=begin", "=end"]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
["{", "}"],
13+
["[", "]"],
14+
["(", ")"],
15+
["`", "`"],
16+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
17+
{ "open": "\"", "close": "\"", "notIn": ["string"] }
18+
],
19+
"surroundingPairs": [
20+
["{", "}"],
21+
["[", "]"],
22+
["(", ")"],
23+
["\"", "\""],
24+
["'", "'"],
25+
["`", "`"]
26+
]
27+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Ruby",
33
"displayName": "Ruby",
4-
"version": "0.5.5",
4+
"version": "0.5.6",
55
"publisher": "rebornix",
66
"description": "Provides Ruby language and debugging support for Visual Studio Code",
77
"author": {
@@ -188,7 +188,8 @@
188188
"id": "ruby",
189189
"aliases": ["Ruby", "ruby"],
190190
"extensions": [".rb", ".rbx", ".rjs", ".Rakefile", ".rake", ".cgi", ".fcgi", ".gemspec", ".irbrc", ".capfile",
191-
".ru", ".prawn", ".Gemfile", ".Guardfile", ".Vagrantfile"]
191+
".ru", ".prawn", ".Gemfile", ".Guardfile", ".Vagrantfile"],
192+
"configuration": "./language-configuration.json"
192193
}],
193194
"grammars": [{
194195
"language": "ruby",

ruby.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,6 @@ function deferReport(uri, lint, diagnostic) {
3333
}
3434

3535
const langConfig = {
36-
comments: {
37-
lineComment: "#",
38-
blockComment: ["=begin", "=end"]
39-
},
40-
brackets: [
41-
["{", "}"],
42-
["[", "]"],
43-
["(", ")"]
44-
],
45-
autoClosingPairs: [
46-
["{", "}"],
47-
["[", "]"],
48-
["(", ")"],
49-
["\"", "\""],
50-
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
51-
["`", "`"]
52-
],
53-
surroundingPairs: [
54-
["{", "}"],
55-
["[", "]"],
56-
["(", ")"],
57-
["\"", "\""],
58-
["'", "'"],
59-
["`", "`"]
60-
],
6136
indentationRules: {
6237
increaseIndentPattern: /^\s*((begin|class|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while)|(.*\sdo\b))\b[^\{;]*$/
6338
},

0 commit comments

Comments
 (0)