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
@@ -269,3 +269,7 @@
text\begin{tabular}text\end{tabular}
text\begin{a}text\end{a}
+
+% Close brackets correctly in some commands (see bug #415384)
+\input{\a{}}
+\cites{ text { text } text }
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
@@ -275,4 +275,8 @@
text\begin{tabular}text\end{tabular}
text\begin{a}text\end{a}
+
+% Close brackets correctly in some commands (see bug #415384)
+\input{\a{}}
+\cites{ text { text } text }