I am a big fan of the LaTeX linters lacheck and chktex. But in writing my document, I have come across an annoying warning from chktex which shouldn't be one. Consider the following minimal example using different notations and the different ways I could come up with to format this.
\documentclass{minimal}
\begin{document}
Let $t\in[0,\infty)$.
Let $t\in[0,\infty[$.
Let $t\in\left[0,\infty\right)$.
Let $t\in\left[0,\infty\right[$.
\end{document}
This is a fairly common thing to have in mathematics but chktex, apparently just counting braces, puts out the errors
Warning 9 in minimal.tex line 4: `]' expected, found `)'.
Let $t\in[0,\infty)$.
^
Warning 9 in minimal.tex line 6: `]' expected, found `)'.
Let $t\in\left[0,\infty\right)$.
^
Warning 15 in minimal.tex line 7: No match found for `['.
Let $t\in\left[0,\infty\right[$.
^
Warning 15 in minimal.tex line 7: No match found for `['.
Let $t\in\left[0,\infty\right[$.
^
Warning 15 in minimal.tex line 5: No match found for `['.
Let $t\in[0,\infty[$.
^
Warning 15 in minimal.tex line 5: No match found for `['.
Let $t\in[0,\infty[$.
^
Warning 17 in minimal.tex line 8: Number of `(' doesn't match the number of `)'!
Warning 17 in minimal.tex line 8: Number of `[' doesn't match the number of `]'!
Given how common this kind of definition is, I would like to know whether there is a way to define open intervals like this without incurring chktex's wrath.
I know I could just turn off the warning (which I don't want to, since it is a useful warning generally), or just ignore the line (which I would prefer not to if I don't have to). There must be something the chktex makers provided to type open intervals, right?