HackPack/HackUnit — pull request #10 by kilahm (2014-11-18 06:56:08+00:00)
Title: Once the class name is found, stop looking for it.

It is possible for two `class` tokens to be in the 512 byte block that is searched. This would happen if a test case is checking for class names.

This came up for me when I was making a type-safe strict mode IOCContainer. I wanted to make sure the name of the class instantiated is as expected, and I used `ClassName::class` to get the name of the expected class as a string. The parser interprets this as a `class` token.

The symptom was the loader was attempting to load a class with the correct namespace, but the class name was an empty string.