mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
20 lines
1007 B
JavaScript
20 lines
1007 B
JavaScript
"use strict";
|
|
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const vscode_1 = require("vscode");
|
|
function activate(_context) {
|
|
vscode_1.languages.setLanguageConfiguration('python', {
|
|
onEnterRules: [
|
|
{
|
|
beforeText: /^\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\s*$/,
|
|
action: { indentAction: vscode_1.IndentAction.Indent }
|
|
}
|
|
]
|
|
});
|
|
}
|
|
exports.activate = activate;
|
|
|
|
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/2213894ea0415ee8c85c5eea0d0ff81ecc191529/extensions\python\out/pythonMain.js.map
|