Spaces:
Running
Running
Update utils/block_relation_builder.py
Browse files
utils/block_relation_builder.py
CHANGED
@@ -1717,7 +1717,8 @@ def parse_condition(stmt, parent_key, pick_key_func, all_generated_blocks):
|
|
1717 |
|
1718 |
# 5) Touching object: <touching [edge v]?>
|
1719 |
# m_touch = re.fullmatch(r"""\s*<?\s*touching\s*\[\s*(?P<sprite>[^\]]+?)\s*(?:v)?\s*\]\s*\?\s*>?""", s_lower, re.IGNORECASE | re.VERBOSE)
|
1720 |
-
m_touch = re.fullmatch(r"""\s*<?\s*touching\s*\[\s*(?P<sprite>[^\]]+?)\s*(?:v)?\s*\]\s*\?\s*>?\s*""", s_lower, re.IGNORECASE | re.VERBOSE)
|
|
|
1721 |
if m_touch:
|
1722 |
sprite = m_touch.group('sprite').strip()
|
1723 |
val = {'mouse-pointer':'_mouse_', 'edge':'_edge_'}.get(sprite, sprite)
|
|
|
1717 |
|
1718 |
# 5) Touching object: <touching [edge v]?>
|
1719 |
# m_touch = re.fullmatch(r"""\s*<?\s*touching\s*\[\s*(?P<sprite>[^\]]+?)\s*(?:v)?\s*\]\s*\?\s*>?""", s_lower, re.IGNORECASE | re.VERBOSE)
|
1720 |
+
#m_touch = re.fullmatch(r"""\s*<?\s*touching\s*\[\s*(?P<sprite>[^\]]+?)\s*(?:v)?\s*\]\s*\?\s*>?\s*""", s_lower, re.IGNORECASE | re.VERBOSE)
|
1721 |
+
m_touch = re.fullmatch(r"""\s*<?\s*touching\s*\[\s*(?P<sprite>[^\]]+?)\s*(?:v)?\s*\]\s*(?:\?)?\s*>?\s*""", s_lower, re.IGNORECASE | re.VERBOSE)
|
1722 |
if m_touch:
|
1723 |
sprite = m_touch.group('sprite').strip()
|
1724 |
val = {'mouse-pointer':'_mouse_', 'edge':'_edge_'}.get(sprite, sprite)
|