mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Merge pull request #35636 from Syeberman/python_auto_closing_string_prefix
Support auto-closing quotes in Python raw string literals, etc
This commit is contained in:
@@ -13,7 +13,23 @@
|
||||
{ "open": "[", "close": "]" },
|
||||
{ "open": "(", "close": ")" },
|
||||
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
||||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }
|
||||
{ "open": "r\"", "close": "\"", "notIn": ["string", "comment"] },
|
||||
{ "open": "R\"", "close": "\"", "notIn": ["string", "comment"] },
|
||||
{ "open": "u\"", "close": "\"", "notIn": ["string", "comment"] },
|
||||
{ "open": "U\"", "close": "\"", "notIn": ["string", "comment"] },
|
||||
{ "open": "f\"", "close": "\"", "notIn": ["string", "comment"] },
|
||||
{ "open": "F\"", "close": "\"", "notIn": ["string", "comment"] },
|
||||
{ "open": "b\"", "close": "\"", "notIn": ["string", "comment"] },
|
||||
{ "open": "B\"", "close": "\"", "notIn": ["string", "comment"] },
|
||||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "r'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "R'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "u'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "U'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "f'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "F'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "b'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "B'", "close": "'", "notIn": ["string", "comment"] }
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
|
||||
Reference in New Issue
Block a user