fix outline issue: allow Ref in Math in latex.grammar (#13054)

* added failing test

* latex.grammar update: allow Ref in Math

GitOrigin-RevId: 340bf40cf4804e7693965a29b16b869a54a467d7
This commit is contained in:
Domagoj Kriskovic 2023-05-12 10:42:38 +02:00 committed by Copybot
parent 27cc7db733
commit 8c12bce5b6

View file

@ -628,6 +628,9 @@ Math {
| Label { | Label {
LabelCtrlSeq optionalWhitespace? OptionalArgument? LabelArgument LabelCtrlSeq optionalWhitespace? OptionalArgument? LabelArgument
} }
| Ref {
(RefCtrlSeq | RefStarrableCtrlSeq "*"?) optionalWhitespace? OptionalArgument? optionalWhitespace? OptionalArgument? optionalWhitespace? RefArgument
}
)+ )+
} }