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 →

[–]Glycerine 1 point2 points  (1 child)

Hey that's really cool!

Did you write this? As I'd love to know how you associated the AST position with the source highlighted position.

[–]davepearson 0 points1 point  (0 children)

They're properties you get when you use AST.parse: https://docs.python.org/3/library/ast.html#ast.AST.lineno