Replies: 2 comments
-
Hi there, I am trying to update an existing code that looks like the example above, is there a better way to do this rn ?? |
Beta Was this translation helpful? Give feedback.
-
Could you edit the title to make it more descriptive? I'm also interested in this. I'd like to generate function definitions and type annotations, but the problem is the same: all code examples are parsed in such way that makes indentations belong to the parent/previous element, instead of the element on the same line. So you need separate indentation for the first element, all elements in the middle and the last element which owns the indentation for the closing parenthesis/bracket |
Beta Was this translation helpful? Give feedback.
-
Input
Output
Beta Was this translation helpful? Give feedback.
All reactions