ethan-leba / tree-edit

🌲 Structural editing in Emacs for any™ language!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python support

ethan-leba opened this issue · comments

Due to Python's whitespace-based parsing, there are oftentimes nodes with identical boundaries. For example, {foo;} in Java would simply be foo in Python, but the structure still implicitly exists. The node in the hierarchy affects what editing operations are valid, so that's something to keenly be aware of working in Python.

TODO:

  • Complete tree-edit-syntax-snippets for all nodes (d151e7f)
  • Add keybindings in tree-edit-nodes for all nodes (d151e7f)
  • Disallow empty blocks (ab07ec5)
  • Fix tree-edit--parse-fragment parsing expressions as expression statements (deaac61)