preprocessor: don't substitute 'dates' when preceded by an underscore

(cherry picked from commit aa135218a5b6901d31ad560f6f6b88911459fca7)