Allow a space between # and region for folding in Python

Automatic formatting inserts a space between the comment marker `#` and text in the Python extension, so without the allowance for whitespace then `"editor.formatOnType": true` breaks all region markers.

Closes Microsoft/vscode-python#1073 and Microsoft/vscode-python#33
This commit is contained in:
Brett Cannon 2018-03-28 15:34:56 -07:00 committed by GitHub
parent a4da791b92
commit 2f581e8986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,8 +43,8 @@
"folding": {
"offSide": true,
"markers": {
"start": "^\\s*#region\\b",
"end": "^\\s*#endregion\\b"
"start": "^\\s*#\\s*region\\b",
"end": "^\\s*#\\s*endregion\\b"
}
}
}