detect file extension syntax