There seem to be two types of questions people are closing as
This question was caused by a problem that can no longer be reproduced or a simple typographical error. etc...
The first type is code that has a typo(s), e.g.
int thisIsAnInt = 3;
tisIsAnInt = 4;
It should obviously be closed with that reason. The second type is when somebody makes a syntax error due to ignorance, not a typo, e.g.
int thisIsAnInt = 3
thisIsAnInt = 4
I know it isn't the best example, but there are useful syntax error questions, like this and this.
Should questions of the second type be closed solely due to them being syntax errors?
Note: To me, it makes sense to create a canonical question for every syntax error or type of syntax error. Then questions of the first type can either be closed as a duplicate or closed with the "a simple typographical error" reason, and questions of the second type can be closed as a duplicate, or if no duplicate exists, they can be turned into a canonical question.