vscode/extensions/python/language-configuration.json
Matt Bierner 4add169505 Disable (#16350)
**Bug**
In python file, typing `'` in a string or comment results in `''` due to auto closing pairs.

**fix**
Apply same fix that we use for Typescript to disable this behavior in strings and comments https://github.com/Microsoft/vscode/blob/master/extensions/typescript/language-configuration.json

Fixes #8539
2016-12-02 11:22:34 -08:00

26 lines
554 B
JSON

{
"comments": {
"lineComment": "#",
"blockComment": [ "'''", "'''" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
// enhancedBrackets: [ { open: /.*:\s*$/, closeComplete: 'else:' } ],
}