mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Further development of issue5559, handle Windows files
which not only have embedded spaces, but leading spaces.
This commit is contained in:
parent
106ac46b3f
commit
62e9a653b5
1 changed files with 4 additions and 2 deletions
|
@ -60,10 +60,12 @@ class OutputWindow(EditorWindow):
|
|||
]
|
||||
|
||||
file_line_pats = [
|
||||
# order of patterns matters
|
||||
r'file "([^"]*)", line (\d+)',
|
||||
r'([^\s]+)\((\d+)\)',
|
||||
r'([^\s]+):\s*(\d+):',
|
||||
r'^\s*(\S+.*?):\s*(\d+):', # Win path with spaces, trim leading spaces
|
||||
r'^(\s*\S.*?):\s*(\d+):', # Win filename, maybe starting with spaces
|
||||
r'([^\s]+):\s*(\d+):', # filename or path, ltrim
|
||||
r'^\s*(\S.*?):\s*(\d+):', # Win abs path with embedded spaces, ltrim
|
||||
]
|
||||
|
||||
file_line_progs = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue