When I ported the Castalia parser to FreePascal and tried to add some FPC specific constructs I ran out of space at 255....
That is about the largest case structure I have seen in Pascal.
That particular case loop was machine generated, already at its early origins by Martin Waldenburg
The compiler warns about being too complex if you try to add more.
One way to solve this limit is to use nested cases. I had to do that because there are many more than 255 syntactic elements possible in modern Pascal. Actually someone else that expanded on that code already started with nested case, because Delphi itself has already more posibilities than 255. so I can write with confidence the limit is 256. I am not quite sure a terminating else is counting towards that limit, so it can be one more.
I added the parser, so you can see for yourself. This not my definitive version for FPC, but a working version and stable: It can parse the very complex kol.pas without error.
And it has an exhaustive working case of 256 elements. Try to add one more...
(Oops, posted an older version that still has empty slots, but the principle is the same)