Allow + in region specification

This commit is contained in:
Paul Romano 2015-10-06 09:19:06 +07:00
parent 61cb6f2319
commit 70b4bf3118
2 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@ class Region(object):
i_start = -1
else:
# Check for invalid characters
if expression[i] not in '-0123456789':
if expression[i] not in '-+0123456789':
raise SyntaxError("Invalid character '{}' in expression"
.format(expression[i]))

View file

@ -136,7 +136,7 @@ contains
i_start = 0
else
! Check for invalid characters
if (index('-0123456789', string_(i:i)) == 0) then
if (index('-+0123456789', string_(i:i)) == 0) then
call fatal_error("Invalid character '" // string_(i:i) // "' in &
&region specification.")
end if