Show More
@@ -120,6 +120,7 b' if pygmentspresent:' | |||||
120 | } |
|
120 | } | |
121 |
|
121 | |||
122 | class TestRunnerLexer(lexer.RegexLexer): |
|
122 | class TestRunnerLexer(lexer.RegexLexer): | |
|
123 | testpattern = r'[\w-]+\.(t|py)( \(case [\w-]+\))?' | |||
123 | tokens = { |
|
124 | tokens = { | |
124 | 'root': [ |
|
125 | 'root': [ | |
125 | (r'^Skipped', token.Generic.Skipped, 'skipped'), |
|
126 | (r'^Skipped', token.Generic.Skipped, 'skipped'), | |
@@ -127,11 +128,11 b' if pygmentspresent:' | |||||
127 | (r'^ERROR: ', token.Generic.Failed, 'failed'), |
|
128 | (r'^ERROR: ', token.Generic.Failed, 'failed'), | |
128 | ], |
|
129 | ], | |
129 | 'skipped': [ |
|
130 | 'skipped': [ | |
130 |
( |
|
131 | (testpattern, token.Generic.SName), | |
131 | (r':.*', token.Generic.Skipped), |
|
132 | (r':.*', token.Generic.Skipped), | |
132 | ], |
|
133 | ], | |
133 | 'failed': [ |
|
134 | 'failed': [ | |
134 |
( |
|
135 | (testpattern, token.Generic.FName), | |
135 | (r'(:| ).*', token.Generic.Failed), |
|
136 | (r'(:| ).*', token.Generic.Failed), | |
136 | ] |
|
137 | ] | |
137 | } |
|
138 | } |
General Comments 0
You need to be logged in to leave comments.
Login now