What do you think of extracting the guard in a method, e.g., ``isWhileKeyword``? I feel this would clearly describe what is being checked. 

One more thing, it would be nice if you could use ``global.nme.WHILE_PREFIX`` (you'll have to escape the returned String) instead of ``while\\$``