Since the question at hand is old, ranks highly on Google, and has a highly upvoted answer, I would bet that those upvotes aren't from the SO regulars who saw it in the first few minutes of its creation, but rather from visitors who had that same problem, Googled it, and found a resolution for their issue. As @HansPassant mentions in a comment, it may be a typo, but the normal way to troubleshoot a problem - the error message - is ineffective here. The root cause of the problem (a typo) may be off-topic for SO, but the reality of the situation turns it into an issue that is difficult to solve through normal means.
Python has a similar question, Strange invalid synthax error1. It is "strange" because the traceback points to a line with no apparent problems. It causes an error because it's not a syntactically valid continuation of the previous line, which is not displayed in the error message. The interpreter is expecting it to be a valid continuation of the previous line because that previous line lacks a final closing parenthesis, a common typo.
I use that as a duplicate target almost every day, because it can be difficult to tell
... ('.')[2])-1]))]
^
from
... ('.')[2])-1]))
^
and anyone unaware of this little quirk will be expecting a useful traceback (as Python usually provides).
However, the traceback will be a SyntaxError
pointing at whatever the next line is, which could be perfectly valid if it was seen as a single line rather than a continuation of the previous one. If a user searches SO for errors with the indicated line, Google will come up with nothing. So they ask a new question. Hopefully the code they post includes the line before the one indicated in the traceback, so that we can see the missing bracket and confirm the cause of the problem.
If this "missing comma" question is as common as "missing closing parenthesis/bracket/brace on previous line," it will be asked again, and again, and again... and it'll take five privileged users to close it as a typo rather than a single gold-badge user to do what I do:
Hammer it as a duplicate.
With a duplicate closure, the asker gets a solution, the matter is closed, and the question can be deleted as soon as it meets the various criteria.
The "typo" close reason, on the other hand, is very generic. Closing a question in that fashion pretty much requires a brief answer in the comments (assuming you want to actually resolve the asker's issue). If that specific problem is common enough to have appeared in multiple questions, it's more convenient for privileged users and more helpful for the asker if it's closed as a specific duplicate. If the new question is bad (as typo questions generally are), it can be deleted in the same way that the question at hand was.
But please, leave one alive, even if it's only to make it easier to kill the rest.
1Sad update: that syntax error question was deleted a few days ago. I've switched to SyntaxError: invalid syntax (Very simple one..) instead.