2015-11-13 13:39:38 +00:00
|
|
|
{
|
|
|
|
"comments": {
|
|
|
|
"lineComment": "#",
|
|
|
|
"blockComment": [ "=begin", "=end" ]
|
|
|
|
},
|
|
|
|
"brackets": [
|
|
|
|
["{", "}"],
|
|
|
|
["[", "]"],
|
|
|
|
["(", ")"]
|
2016-04-21 20:11:22 +00:00
|
|
|
],
|
|
|
|
"autoClosingPairs": [
|
|
|
|
["{", "}"],
|
|
|
|
["[", "]"],
|
|
|
|
["(", ")"],
|
2020-01-09 09:34:35 +00:00
|
|
|
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
|
|
|
{ "open": "'", "close": "'", "notIn": ["string"] },
|
|
|
|
{ "open": "`", "close": "`", "notIn": ["string"] }
|
2016-04-21 20:11:22 +00:00
|
|
|
],
|
|
|
|
"surroundingPairs": [
|
|
|
|
["{", "}"],
|
|
|
|
["[", "]"],
|
|
|
|
["(", ")"],
|
|
|
|
["\"", "\""],
|
2020-01-09 09:34:35 +00:00
|
|
|
["'", "'"],
|
|
|
|
["`", "`"]
|
2017-06-19 20:39:28 +00:00
|
|
|
],
|
|
|
|
"indentationRules": {
|
2021-04-22 13:29:46 +00:00
|
|
|
"increaseIndentPattern": "^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|in|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|(\"|'|\/).*\\4)*(#.*)?$",
|
|
|
|
"decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when|in)\\b)"
|
2017-06-19 20:39:28 +00:00
|
|
|
}
|
2017-09-22 02:19:49 +00:00
|
|
|
}
|