Commit 4383eecd authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix nesting check for states

parent e979ddaa
...@@ -981,8 +981,9 @@ class State(VerticalSymbol): ...@@ -981,8 +981,9 @@ class State(VerticalSymbol):
@property @property
def allow_nesting(self): def allow_nesting(self):
''' Redefinition - must be checked according to context ''' ''' Redefinition - must be checked according to context '''
# nesting permitted only if single plain state
result = not any(elem in str(self).lower().strip() result = not any(elem in str(self).lower().strip()
for elem in ('-', ',', '*')) for elem in ('-', ',', '*', ':', 'via'))
return result return result
@property @property
......
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