Sitting up late, especially when engaged on literary work. Smells of the midnight oil. Said of literary work, which seems very elaborate, and has not the art of concealing art. (See Lamp.)
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894