only things that stands out about the file in question is that it contains 2012 specific code (LAG and lead function), no other file in the database does.
Errors occurred whilst parsing file C:\\Users\\jsmith3\\AppData\\Local\\Red Gate\\SQL Source Control 3\\Transients\\pkauocpy.d1y\\FU_Catalog\\Views\\sales.vw_SSRS_overlapping_contracts.sql
'' at line 12, column 7
'' at line 29, column 20
'' at line 29, column 68
'' at line 34, column 38
EDIT: files uploaded here: https://www.dropbox.com/s/jqtvpn56rkpob ... tracts.sql