Better comment
This commit is contained in:
parent
2689d1b8b9
commit
9d0a845b9e
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ const jsxTagsLanguageConfiguration: vscode.LanguageConfiguration = {
|
|||
},
|
||||
{
|
||||
// `beforeText` only applies to tokens of a given language. Since we are dealing with jsx-tags,
|
||||
// make sure we apply to the closing `>` of a tag.
|
||||
// make sure we apply to the closing `>` of a tag so that mixed language spans
|
||||
// such as `<div onclick={1}>` are handled properly.
|
||||
beforeText: /^>$/,
|
||||
afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
|
||||
action: { indentAction: vscode.IndentAction.IndentOutdent }
|
||||
|
|
Loading…
Reference in a new issue