mirror of
https://github.com/Microsoft/vscode
synced 2024-10-04 10:27:46 +00:00
4add169505
**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
26 lines
554 B
JSON
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:' } ],
|
|
} |