Bug 715791 - Preserve line numbers when preprocessing java files as well as js files. r=ted

This commit is contained in:
Kartikaya Gupta 2012-01-05 23:32:05 -05:00
parent 703ff33238
commit 664fe7b801
2 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ class Preprocessor:
args = open(args, 'rU')
except:
raise Preprocessor.Error(self, 'FILE_NOT_FOUND', str(args))
self.checkLineNumbers = bool(re.search('\.js(?:\.in)?$', args.name))
self.checkLineNumbers = bool(re.search('\.(js|java)(?:\.in)?$', args.name))
oldFile = self.context['FILE']
oldLine = self.context['LINE']
oldDir = self.context['DIRECTORY']

View File

@ -428,7 +428,7 @@ class Preprocessor:
args = open(args, 'rU')
except:
raise Preprocessor.Error(self, 'FILE_NOT_FOUND', str(args))
self.checkLineNumbers = bool(re.search('\.js(?:\.in)?$', args.name))
self.checkLineNumbers = bool(re.search('\.(js|java)(?:\.in)?$', args.name))
oldFile = self.context['FILE']
oldLine = self.context['LINE']
oldDir = self.context['DIRECTORY']