tree-edit icon indicating copy to clipboard operation
tree-edit copied to clipboard

Python support

Open ethan-leba opened this issue 3 years ago • 0 comments
trafficstars

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:

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

ethan-leba avatar Dec 02 '21 15:12 ethan-leba