From 8c12bce5b62b9e2e875b261c8045602b82694cb1 Mon Sep 17 00:00:00 2001 From: Domagoj Kriskovic Date: Fri, 12 May 2023 10:42:38 +0200 Subject: [PATCH] fix outline issue: allow Ref in Math in latex.grammar (#13054) * added failing test * latex.grammar update: allow Ref in Math GitOrigin-RevId: 340bf40cf4804e7693965a29b16b869a54a467d7 --- .../js/features/source-editor/lezer-latex/latex.grammar | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/frontend/js/features/source-editor/lezer-latex/latex.grammar b/services/web/frontend/js/features/source-editor/lezer-latex/latex.grammar index 4eb8ef09da..03c44b75e6 100644 --- a/services/web/frontend/js/features/source-editor/lezer-latex/latex.grammar +++ b/services/web/frontend/js/features/source-editor/lezer-latex/latex.grammar @@ -628,6 +628,9 @@ Math { | Label { LabelCtrlSeq optionalWhitespace? OptionalArgument? LabelArgument } + | Ref { + (RefCtrlSeq | RefStarrableCtrlSeq "*"?) optionalWhitespace? OptionalArgument? optionalWhitespace? OptionalArgument? optionalWhitespace? RefArgument + } )+ }