danmar/cppcheck — comment on commit 4b05c3e19f58f5b53e4e306e7fc1d8aae37a6e8f
File: lib/tokenize.cpp line 4165
By danmar:

I don't think the readability is improved here.

The pattern ") {" is easier to read than hardcoded logic. Especially since the hardcoded logic will assume that tok is ')'. When you read the code you have to analyse lines 4146 - 4164 to know what tok is.