Commit 26a3262c authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Bugfix with errors returning strings instead of list

parent e9e9348b
......@@ -124,6 +124,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
**3.3.6 (12/2020)**
- Minor bugfix with predure parsing
**3.3.5 (11/2020)**
- Improve link between error messages and graphical symbols
......
......@@ -2941,8 +2941,13 @@ def procedure_pre(root, parent=None, context=None):
proc.external = True
elif child.type == lexer.FPAR:
params, err, warn = fpar(child)
errors.extend(err)
warnings.extend(warn)
# convert error strings to the proper list
for each in err:
errors.append([f'In procedure signature: {each}',
[0, 0], []])
for each in warn:
warnings.append([f'In procedure {proc.inputString}: {each}',
[textarea.pos_x or 0, textarea.pos_y or 0], []])
proc.fpar = params
elif child.type == lexer.RETURNS:
# Declaration not in a text area...
......
......@@ -141,7 +141,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '3.3.5'
__version__ = '3.3.6'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......
Supports Markdown
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