fix: bad refactor suggested by eslint (#1468)

This commit is contained in:
Myriad-Dreamin 2025-03-09 22:04:30 +08:00 committed by GitHub
parent 689fa914b8
commit 1ad14833dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -530,13 +530,13 @@ export class LanguageState {
{
// Continues a multi-line comment
// e.g. * ...|
beforeText: /^( {2})* *( ([^*]|\*(?!\/))*)?$/,
beforeText: /^( {2})* \*( ([^*]|\*(?!\/))*)?$/,
action: { indentAction, appendText: "* " },
},
{
// Dedents after closing a multi-line comment
// e.g. */|
beforeText: /^( {2})* *\/\s*$/,
beforeText: /^( {2})* \*\/\s*$/,
action: { indentAction, removeText: 1 },
},
];