Prettify src/scan.c