mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #18901 from overleaf/mj-math-mode-args
[lezer] Parse command arguments in math mode GitOrigin-RevId: 85a35f412de4c7238d735253c2642066ebffb393
This commit is contained in:
committed by
Copybot
parent
d2ae97427d
commit
9b1c703f6b
@@ -74,14 +74,15 @@ export const enterNode = (
|
||||
items.push(thisCommand)
|
||||
} else if (
|
||||
node.type.is('UnknownCommand') ||
|
||||
node.type.is('MathCommand') ||
|
||||
node.type.is('KnownCommand')
|
||||
node.type.is('KnownCommand') ||
|
||||
node.type.is('MathUnknownCommand') ||
|
||||
node.type.is('MathKnownCommand')
|
||||
) {
|
||||
let commandNode: SyntaxNode | null = node.node
|
||||
if (node.type.is('KnownCommand')) {
|
||||
// KnownCommands are defined as
|
||||
if (node.type.is('KnownCommand') || node.type.is('MathKnownCommand')) {
|
||||
// (Math)KnownCommands are defined as
|
||||
//
|
||||
// KnownCommand {
|
||||
// (Math)KnownCommand {
|
||||
// CommandName {
|
||||
// CommandCtrlSeq [args]
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user