Fix Trac #2931
Fix Trac #2931

Fix the lexical analyser when it encounters 'x<EOF> and Template 
Haskell is on.


AlexanderPankiv/ghc,ghc-android/ghc,snoyberg/ghc,gcampax/ghc,urbanslug/ghc,mcschroeder/ghc,wxwxwwxxx/ghc,shlevy/ghc,AlexanderPankiv/ghc,ryantm/ghc,mfine/ghc,ekmett/ghc,acowley/ghc,ghc-android/ghc,vikraman/ghc,ml9951/ghc,gcampax/ghc,fmthoma/ghc,urbanslug/ghc,ml9951/ghc,mcschroeder/ghc,acowley/ghc,frantisekfarka/ghc-dsi,anton-dessiatov/ghc,sdiehl/ghc,ghc-android/ghc,elieux/ghc,anton-dessiatov/ghc,nomeata/ghc,ezyang/ghc,bitemyapp/ghc,mcmaniac/ghc,mcmaniac/ghc,gridaphobe/ghc,snoyberg/ghc,vikraman/ghc,lukexi/ghc,lukexi/ghc-7.8-arm64,da-x/ghc,GaloisInc/halvm-ghc,tjakway/ghcjvm,mettekou/ghc,nathyong/microghc-ghc,mettekou/ghc,siddhanathan/ghc,sdiehl/ghc,hferreiro/replay,nathyong/microghc-ghc,shlevy/ghc,nkaretnikov/ghc,hferreiro/replay,urbanslug/ghc,anton-dessiatov/ghc,ml9951/ghc,urbanslug/ghc,mcschroeder/ghc,holzensp/ghc,elieux/ghc,nathyong/microghc-ghc,wxwxwwxxx/ghc,nkaretnikov/ghc,mettekou/ghc,ekmett/ghc,snoyberg/ghc,mettekou/ghc,sgillespie/ghc,snoyberg/ghc,oldmanmike/ghc,holzensp/ghc,elieux/ghc,tjakway/ghcjvm,ilyasergey/GHC-XAppFix,forked-upstream-packages-for-ghcjs/ghc,anton-dessiatov/ghc,mettekou/ghc,oldmanmike/ghc,vikraman/ghc,mcmaniac/ghc,da-x/ghc,fmthoma/ghc,AlexanderPankiv/ghc,spacekitteh/smcghc,ezyang/ghc,nushio3/ghc,fmthoma/ghc,christiaanb/ghc,nomeata/ghc,sgillespie/ghc,forked-upstream-packages-for-ghcjs/ghc,elieux/ghc,siddhanathan/ghc,nushio3/ghc,spacekitteh/smcghc,ml9951/ghc,gridaphobe/ghc,gcampax/ghc,elieux/ghc,bitemyapp/ghc,anton-dessiatov/ghc,urbanslug/ghc,nathyong/microghc-ghc,nkaretnikov/ghc,shlevy/ghc,acowley/ghc,acowley/ghc,vikraman/ghc,mcschroeder/ghc,christiaanb/ghc,mfine/ghc,forked-upstream-packages-for-ghcjs/ghc,nkaretnikov/ghc,nomeata/ghc,ekmett/ghc,elieux/ghc,mcmaniac/ghc,nushio3/ghc,urbanslug/ghc,ryantm/ghc,urbanslug/ghc,olsner/ghc,forked-upstream-packages-for-ghcjs/ghc,vTurbine/ghc,AlexanderPankiv/ghc,vTurbine/ghc,olsner/ghc,vikraman/ghc,gridaphobe/ghc,lukexi/ghc-7.8-arm64,vTurbine/ghc,bitemyapp/ghc,nushio3/ghc,ghc-android/ghc,frantisekfarka/ghc-dsi,AlexanderPankiv/ghc,shlevy/ghc,shlevy/ghc,sdiehl/ghc,forked-upstream-packages-for-ghcjs/ghc,lukexi/ghc,fmthoma/ghc,gridaphobe/ghc,vikraman/ghc,jstolarek/ghc,forked-upstream-packages-for-ghcjs/ghc,fmthoma/ghc,lukexi/ghc-7.8-arm64,sdiehl/ghc,da-x/ghc,nushio3/ghc,da-x/ghc,ezyang/ghc,nathyong/microghc-ghc,TomMD/ghc,spacekitteh/smcghc,hferreiro/replay,ilyasergey/GHC-XAppFix,oldmanmike/ghc,christiaanb/ghc,ezyang/ghc,siddhanathan/ghc,ilyasergey/GHC-XAppFix,GaloisInc/halvm-ghc,shlevy/ghc,ezyang/ghc,ekmett/ghc,mfine/ghc,sgillespie/ghc,vikraman/ghc,jstolarek/ghc,bitemyapp/ghc,TomMD/ghc,oldmanmike/ghc,green-haskell/ghc,hferreiro/replay,olsner/ghc,gridaphobe/ghc,olsner/ghc,christiaanb/ghc,wxwxwwxxx/ghc,sdiehl/ghc,vTurbine/ghc,nathyong/microghc-ghc,siddhanathan/ghc,sgillespie/ghc,da-x/ghc,acowley/ghc,tjakway/ghcjvm,wxwxwwxxx/ghc,lukexi/ghc-7.8-arm64,mettekou/ghc,GaloisInc/halvm-ghc,green-haskell/ghc,siddhanathan/ghc,AlexanderPankiv/ghc,acowley/ghc,mfine/ghc,mcschroeder/ghc,TomMD/ghc,hferreiro/replay,GaloisInc/halvm-ghc,tjakway/ghcjvm,snoyberg/ghc,TomMD/ghc,bitemyapp/ghc,ekmett/ghc,spacekitteh/smcghc,gcampax/ghc,ryantm/ghc,mfine/ghc,tjakway/ghcjvm,tibbe/ghc,sgillespie/ghc,vTurbine/ghc,mcschroeder/ghc,ml9951/ghc,fmthoma/ghc,fmthoma/ghc,tibbe/ghc,frantisekfarka/ghc-dsi,forked-upstream-packages-for-ghcjs/ghc,olsner/ghc,snoyberg/ghc,vTurbine/ghc,GaloisInc/halvm-ghc,ezyang/ghc,oldmanmike/ghc,spacekitteh/smcghc,lukexi/ghc-7.8-arm64,gcampax/ghc,christiaanb/ghc,tibbe/ghc,snoyberg/ghc,vTurbine/ghc,shlevy/ghc,tjakway/ghcjvm,anton-dessiatov/ghc,lukexi/ghc,christiaanb/ghc,ryantm/ghc,olsner/ghc,gcampax/ghc,oldmanmike/ghc,ghc-android/ghc,green-haskell/ghc,ghc-android/ghc,ghc-android/ghc,green-haskell/ghc,TomMD/ghc,siddhanathan/ghc,AlexanderPankiv/ghc,frantisekfarka/ghc-dsi,da-x/ghc,jstolarek/ghc,lukexi/ghc,nkaretnikov/ghc,oldmanmike/ghc,holzensp/ghc,nomeata/ghc,holzensp/ghc,sgillespie/ghc,siddhanathan/ghc,tibbe/ghc,gcampax/ghc,ml9951/ghc,ml9951/ghc,gridaphobe/ghc,TomMD/ghc,ezyang/ghc,mcmaniac/ghc,nomeata/ghc,sgillespie/ghc,anton-dessiatov/ghc,olsner/ghc,nushio3/ghc,holzensp/ghc,nkaretnikov/ghc,wxwxwwxxx/ghc,TomMD/ghc,green-haskell/ghc,ilyasergey/GHC-XAppFix,mfine/ghc,jstolarek/ghc,GaloisInc/halvm-ghc,hferreiro/replay,acowley/ghc,frantisekfarka/ghc-dsi,nushio3/ghc,nkaretnikov/ghc,jstolarek/ghc,GaloisInc/halvm-ghc,elieux/ghc,tibbe/ghc,lukexi/ghc,christiaanb/ghc,ryantm/ghc,gridaphobe/ghc,tjakway/ghcjvm,ml9951/ghc,da-x/ghc,hferreiro/replay,wxwxwwxxx/ghc,wxwxwwxxx/ghc,mettekou/ghc,mfine/ghc,sdiehl/ghc,sdiehl/ghc,mcschroeder/ghc,nathyong/microghc-ghc