提交 a75c865d 编写于 作者: M Martin Aeschlimann

fixes #6371: [html] When using custom HTML tags, VS auto-align wrong way.

上级 439e68bd
...@@ -407,8 +407,8 @@ export class HTMLMode<W extends htmlWorker.HTMLWorker> extends AbstractMode impl ...@@ -407,8 +407,8 @@ export class HTMLMode<W extends htmlWorker.HTMLWorker> extends AbstractMode impl
onEnterRules: [ onEnterRules: [
{ {
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join('|')}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, 'i'), beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join('|')}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`, 'i'),
afterText: /^<\/(\w[\w\d]*)\s*>$/i, afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
action: { indentAction: modes.IndentAction.IndentOutdent } action: { indentAction: modes.IndentAction.IndentOutdent }
}, },
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册