Yes there is and error in the given expression, but the point is I didn't think parentheses matching needed correct syntax to work? The only syntax I thought it should take into account was to skip comments and strings.
As the example above shows, if you have made a typo, its is no longer helpful to you.