pull an all-nighter
To remain awake all night long, especially so as to study or to complete something. I was a bit of a procrastinator in college, so I tended to pull a lot of all-nighters. Jeff pulled an all-nighter on Thursday to get his report finished for work by the deadline today, so I don't think he'll be coming out with us tonight.