Skip to content

Commit

Permalink
do not autoclose quotes when in strings. Fixes #88265
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Jan 9, 2020
1 parent 4f6af32 commit e9bb8b3
Show file tree
Hide file tree
Showing 20 changed files with 56 additions and 53 deletions.
2 changes: 1 addition & 1 deletion extensions/bat/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
{ "open": "\"", "close": "\"", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand Down
4 changes: 2 additions & 2 deletions extensions/clojure/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
{ "open": "\"", "close": "\"", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -22,4 +22,4 @@
"folding": {
"offSide": true
}
}
}
4 changes: 2 additions & 2 deletions extensions/coffeescript/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand Down
6 changes: 3 additions & 3 deletions extensions/groovy/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -22,4 +22,4 @@
["\"", "\""],
["'", "'"]
]
}
}
6 changes: 3 additions & 3 deletions extensions/ini/ini.language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -22,4 +22,4 @@
["\"", "\""],
["'", "'"]
]
}
}
4 changes: 2 additions & 2 deletions extensions/ini/properties.language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
{ "open": "\"", "close": "\"", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -21,4 +21,4 @@
["\"", "\""],
["'", "'"]
]
}
}
4 changes: 2 additions & 2 deletions extensions/java/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"],
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] },
{ "open": "/**", "close": " */", "notIn": ["string"] }
],
"surroundingPairs": [
Expand Down
4 changes: 2 additions & 2 deletions extensions/lua/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand Down
6 changes: 3 additions & 3 deletions extensions/objective-c/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -22,4 +22,4 @@
["\"", "\""],
["'", "'"]
]
}
}
8 changes: 4 additions & 4 deletions extensions/perl/perl.language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"],
["`", "`"]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] },
{ "open": "`", "close": "`", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -29,4 +29,4 @@
"end": "^(?:(?:=cut\\s*$)|(?:\\s*#endregion\\b))"
}
}
}
}
8 changes: 4 additions & 4 deletions extensions/perl/perl6.language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"],
["`", "`"]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] },
{ "open": "`", "close": "`", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -23,4 +23,4 @@
["'", "'"],
["`", "`"]
]
}
}
6 changes: 3 additions & 3 deletions extensions/pug/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
["{", "}"],
["[", "]"],
["(", ")"],
["'", "'"],
["\"", "\""]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -24,4 +24,4 @@
"folding": {
"offSide": true
}
}
}
8 changes: 5 additions & 3 deletions extensions/r/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
["\"", "\""],
["'", "'"]
]
}
}
8 changes: 5 additions & 3 deletions extensions/ruby/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] },
{ "open": "`", "close": "`", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
["'", "'"],
["`", "`"]
],
"indentationRules": {
"increaseIndentPattern": "^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|(\"|'|\/).*\\4)*(#.*)?$",
Expand Down
5 changes: 2 additions & 3 deletions extensions/rust/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
{ "open": "\"", "close": "\"", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
["\"", "\""]
],
"indentationRules": {
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
Expand Down
4 changes: 2 additions & 2 deletions extensions/shaderlab/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
{ "open": "\"", "close": "\"", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
]
}
}
6 changes: 3 additions & 3 deletions extensions/shellscript/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"],
["`", "`"]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] },
{ "open": "`", "close": "`", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand Down
8 changes: 4 additions & 4 deletions extensions/swift/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"],
["`", "`"]
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] },
{ "open": "`", "close": "`", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -24,4 +24,4 @@
["'", "'"],
["`", "`"]
]
}
}
4 changes: 2 additions & 2 deletions extensions/vb/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
{ "open": "\"", "close": "\"", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
Expand All @@ -27,4 +27,4 @@
"end": "^\\s*#End Region\\b"
}
}
}
}
4 changes: 2 additions & 2 deletions extensions/xml/xml.language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
{ "open": "{", "close": "}"},
{ "open": "[", "close": "]"},
{ "open": "(", "close": ")" },
{ "open": "'", "close": "'" },
{ "open": "\"", "close": "\"" },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] },
{ "open": "<!--", "close": "-->", "notIn": [ "comment", "string" ]},
{ "open": "<![CDATA[", "close": "]]>", "notIn": [ "comment", "string" ]}
],
Expand Down

0 comments on commit e9bb8b3

Please sign in to comment.