mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 18:20:09 +02:00
Merge pull request #19157 from overleaf/mj-separate-unknowncommands
[lezer] Separate unknown commands for definition fragments GitOrigin-RevId: 21ce8d03e68f4af13c3937b4b5fd6f7ed0e50995
This commit is contained in:
committed by
Copybot
parent
5bcd6c0075
commit
5fba4d60f8
@@ -521,7 +521,7 @@ DefinitionFragmentArgument {
|
||||
|
||||
DefinitionFragmentCommand {
|
||||
KnownCommand<TextArgument>
|
||||
| UnknownCommand { genericUnknownCommandWithOptionalArguments<DefinitionFragmentArgument, OptionalArgument> }
|
||||
| DefinitionFragmentUnknownCommand { genericUnknownCommandWithOptionalArguments<DefinitionFragmentArgument, OptionalArgument> }
|
||||
| KnownCtrlSym
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,8 @@ export const enterNode = (
|
||||
} else if (
|
||||
node.type.is('UnknownCommand') ||
|
||||
node.type.is('KnownCommand') ||
|
||||
node.type.is('MathUnknownCommand')
|
||||
node.type.is('MathUnknownCommand') ||
|
||||
node.type.is('DefinitionFragmentUnknownCommand')
|
||||
) {
|
||||
let commandNode: SyntaxNode | null = node.node
|
||||
if (node.type.is('KnownCommand')) {
|
||||
|
||||
Reference in New Issue
Block a user