parse pragma, format code