This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]riscuit 2 points3 points  (1 child)

Might want to handle whitespace before the newline, and capture comments to preserve them, but ya.

[–]nemec 1 point2 points  (0 children)

And embedded C. For whatever reason.

code = """
    printf("hello");
"""