diff --git a/Support/content.ejs b/Support/content.ejs index c1946df..8c4ba43 100644 --- a/Support/content.ejs +++ b/Support/content.ejs @@ -67,7 +67,10 @@ <% } %> at line <%= issue.line %> position <%= issue.character %>
\w+) - (?P.+) \((?P\w+)\)$')
+
+ rx = re.compile('^[^:]+\\: line (?P\\d+), ' +
+ 'col (?P\\d+), ' +
+ '(?P\\w+) - (?P.+)\\s?(\\((?P\\w+)\\))?$')
issues = []
@@ -313,10 +315,12 @@ def validate(quiet=False):
'line': int(m.group('line')),
'character': int(m.group('character')) + 1,
'code': m.group('code'),
- 'reason': m.group('reason'),
- 'shortname': m.group('shortname')
+ 'reason': m.group('reason')
}
+ if m.group('shortname'):
+ issue['shortname'] = m.group('shortname')
+
issues.append(issue)
# normalize line numbers