diff --git a/autotests/folding/highlight.tex.fold b/autotests/folding/highlight.tex.fold --- a/autotests/folding/highlight.tex.fold +++ b/autotests/folding/highlight.tex.fold @@ -273,3 +273,7 @@ % Close brackets correctly in some commands (see bug #415384) \input{\a{}} \cites{ text { text } text } + +% Parentheses within [ ... ] (see bug #418979) +\cite[eq. (1.1)]{some_reference} +\cite[eq. \(x^n + y^n = z^n\)]{some reference} diff --git a/autotests/html/highlight.tex.html b/autotests/html/highlight.tex.html --- a/autotests/html/highlight.tex.html +++ b/autotests/html/highlight.tex.html @@ -279,4 +279,8 @@ % Close brackets correctly in some commands (see bug #415384) \input{\a{}} \cites{ text { text } text } + +% Parentheses within [ ... ] (see bug #418979) +\cite[eq. (1.1)]{some_reference} +\cite[eq. \(x^n + y^n = z^n\)]{some reference} diff --git a/autotests/input/highlight.tex b/autotests/input/highlight.tex --- a/autotests/input/highlight.tex +++ b/autotests/input/highlight.tex @@ -273,3 +273,7 @@ % Close brackets correctly in some commands (see bug #415384) \input{\a{}} \cites{ text { text } text } + +% Parentheses within [ ... ] (see bug #418979) +\cite[eq. (1.1)]{some_reference} +\cite[eq. \(x^n + y^n = z^n\)]{some reference} diff --git a/autotests/reference/highlight.tex.ref b/autotests/reference/highlight.tex.ref --- a/autotests/reference/highlight.tex.ref +++ b/autotests/reference/highlight.tex.ref @@ -273,3 +273,7 @@ % Close brackets correctly in some commands (see bug #415384)
\input{\a{}}
\cites{ text { text } text }
+
+% Parentheses within [ ... ] (see bug #418979)
+\cite[eq. (1.1)]{some_reference}
+\cite[eq. \(x^n + y^n = z^n\)]{some reference}
diff --git a/data/syntax/latex.xml b/data/syntax/latex.xml --- a/data/syntax/latex.xml +++ b/data/syntax/latex.xml @@ -5,7 +5,7 @@ ]> - +