When invoked the scanner points right after the LaTeX fragment that triggered
this parsing handler.
The scanner should be moved, by calling scanner.next() for every consumed
token.
If it was in an infix or postfix context, lhs will represent the
left-hand side argument. In a prefix or matchfix context, lhs is null.
In a superfix (^) or subfix (_) context (that is if the first token of the
trigger is ^ or _), lhs is ["Superscript", lhs, rhs]
and ["Subscript", lhs, rhs], respectively.
The handler should return null if the expression could not be parsed
(didn't match the syntax that was expected). The matching expression
otherwise.
Custom parsing handler.
When invoked the scanner points right after the LaTeX fragment that triggered this parsing handler.
The scanner should be moved, by calling
scanner.next()
for every consumed token.If it was in an infix or postfix context,
lhs
will represent the left-hand side argument. In a prefix or matchfix context,lhs
isnull
.In a superfix (^) or subfix (_) context (that is if the first token of the trigger is
^
or_
), lhs is["Superscript", lhs, rhs]
and["Subscript", lhs, rhs]
, respectively.The handler should return
null
if the expression could not be parsed (didn't match the syntax that was expected). The matching expression otherwise.