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}