mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-07 21:15:03 +00:00
fix: bad refactor suggested by eslint (#1468)
This commit is contained in:
parent
689fa914b8
commit
1ad14833dd
1 changed files with 2 additions and 2 deletions
|
@ -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 },
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue