[visual] Decorate keywords command (#13724)

GitOrigin-RevId: ffd737705098c8a3eb0de5fe8ffbbc656c30d17c
This commit is contained in:
Alf Eaton 2023-12-08 09:38:04 +00:00 committed by Copybot
parent da397e17d4
commit 6270dd0e2a

View file

@ -1029,6 +1029,18 @@ export const atomicDecorations = (options: Options) => {
)
)
}
} else if (commandName === '\\keywords') {
if (shouldDecorate(state, nodeRef)) {
// command name and opening brace
decorations.push(
...decorateArgumentBraces(
new BraceWidget('keywords: '),
textArgumentNode,
nodeRef.from
)
)
return false
}
} else if (
commandName === '\\footnote' ||
commandName === '\\endnote'