Commit b2306ed3 authored by Alexander Shiryaev's avatar Alexander Shiryaev
Browse files

profiles: support latest Astrobe compiler

parent cb56e867
......@@ -350,7 +350,7 @@ def gpcpCompile (text, encodedText, encoding, fileName):
msg = u"'MODULE Ident;' expected"
return (msg, None, None)
_paLineCol = re.compile('^ *([0-9]+) +([0-9]+): *([^\n]+)\n')
_paLineCol = re.compile('^ *([0-9]+) +([0-9]+) *(Error|Warning): *([^\n]+)\n')
# fileName may be None
def astrobeCompile (text, encodedText, encoding, fileName):
......@@ -410,7 +410,6 @@ def astrobeCompile (text, encodedText, encoding, fileName):
else:
msg = 'wine AstrobeCompile: ' + exMsg(e)
return (msg, None, None)
# , , dcc32 ascii-
msg = e + o.decode( encoding )
eLines = e.count('\n')
......@@ -428,8 +427,8 @@ def astrobeCompile (text, encodedText, encoding, fileName):
col = int(r.group(2)) - 1
pos = (line, col)
link = (i, pos)
m = r.group(3)
if m.startswith('!'):
m = r.group(4)
if r.group(3) == 'Warning':
warns.append(link)
else:
errs.append(link)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment