extend error mode to handle grep -n output

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-11-21 12:59:31 -05:00
parent 7ba2fc4720
commit 980510180c
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ from mode import Fundamental
_error_regexes = [ _error_regexes = [
r'at (?P<file>\S+) line (?P<line>\d+)\.?$', #perl r'at (?P<file>\S+) line (?P<line>\d+)\.?$', #perl
r'File "(?P<file>.+?)", line (?P<line>\d+)(?:, in \S+)?$', #python r'File "(?P<file>.+?)", line (?P<line>\d+)(?:, in \S+)?$', #python
r'^(?P<file>\S+?):(?P<line>\d+): ', #javac/gcc r'^(?P<file>\S+?):(?P<line>\d+):', #javac/gcc
r'at \S+\((?P<file>.+?):(?P<line>\d+)\)$', #java r'at \S+\((?P<file>.+?):(?P<line>\d+)\)$', #java
r'^(?P<line>\d+):', #grep r'^(?P<line>\d+):', #grep
] ]