Small cleanup of gen/pragma.cpp

- Added locations to many error messages
- Fixed indentation