Spaces:
Running
Running
Update utils/block_relation_builder.py
Browse files
utils/block_relation_builder.py
CHANGED
|
@@ -1716,7 +1716,8 @@ def parse_condition(stmt, parent_key, pick_key_func, all_generated_blocks):
|
|
| 1716 |
return {"kind": "block", "block": block_id}
|
| 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 |
if m_touch:
|
| 1721 |
sprite = m_touch.group('sprite').strip()
|
| 1722 |
val = {'mouse-pointer':'_mouse_', 'edge':'_edge_'}.get(sprite, sprite)
|
|
|
|
| 1716 |
return {"kind": "block", "block": block_id}
|
| 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)
|