Bug while parsing long located variables in GetLocations fixed
authorlbessard
Thu, 28 May 2009 07:47:38 +0200
changeset 348 054fbf1ae0f8
parent 347 2ba1aea5c70d
child 349 24d4e48714ed
Bug while parsing long located variables in GetLocations fixed
plugger.py
--- a/plugger.py	Fri May 22 10:27:55 2009 +0200
+++ b/plugger.py	Thu May 28 07:47:38 2009 +0200
@@ -893,7 +893,7 @@
             # each line of LOCATED_VARIABLES.h declares a located variable
             lines = [line.strip() for line in location_file.readlines()]
             # This regular expression parses the lines genereated by IEC2C
-            LOCATED_MODEL = re.compile("__LOCATED_VAR\((?P<IEC_TYPE>[A-Z]*),(?P<NAME>[_A-Za-z0-9]*),(?P<DIR>[QMI])(?:,(?P<SIZE>[XBWD]))?,(?P<LOC>[,0-9]*)\)")
+            LOCATED_MODEL = re.compile("__LOCATED_VAR\((?P<IEC_TYPE>[A-Z]*),(?P<NAME>[_A-Za-z0-9]*),(?P<DIR>[QMI])(?:,(?P<SIZE>[XBWDL]))?,(?P<LOC>[,0-9]*)\)")
             for line in lines:
                 # If line match RE, 
                 result = LOCATED_MODEL.match(line)