web commit by JoshTriplett: I think parsing nested square brackets solves the problem.