S
Sandra-24
I'm not sure how complex this is, I've been brainstorming a little, and
I've come up with:
If the previous line ended with a comma or a \ (before an optional
comment)
That's easy to cover with a regex
But that doesn't cover everything, because this is legal:
l = [
1,
2,
3
]
and with dictionaries and tuples as well.
Not sure how I would check for that programmatically yet.
Is there any others I'm missing?
Thanks,
-Sandra
I've come up with:
If the previous line ended with a comma or a \ (before an optional
comment)
That's easy to cover with a regex
But that doesn't cover everything, because this is legal:
l = [
1,
2,
3
]
and with dictionaries and tuples as well.
Not sure how I would check for that programmatically yet.
Is there any others I'm missing?
Thanks,
-Sandra