Better handling for lexing errors.

This commit is contained in:
Bob Nystrom
2013-12-23 14:51:06 -08:00
parent 1503e74233
commit c8cb0be816
5 changed files with 36 additions and 6 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ else:
EXPECT_PATTERN = re.compile(r'// expect: (.*)')
EXPECT_ERROR_PATTERN = re.compile(r'// expect error')
EXPECT_ERROR_LINE_PATTERN = re.compile(r'// expect error line (\d+)')
ERROR_PATTERN = re.compile(r'\[Line (\d+)\] Error ')
ERROR_PATTERN = re.compile(r'\[Line (\d+)\] Error')
SKIP_PATTERN = re.compile(r'// skip: (.*)')
NONTEST_PATTERN = re.compile(r'// nontest')