line continuation operator
Opened this issue · 1 comments
jayvdb commented
When there is a line continuation operator, any auto-ignore comments on the last continued line should apply to all lines. This is another example of the multi-line regex problem (#4). In this case, it is an implicit multi-line regex, and can be implemented only for auto-ignore comments, which may be easier than the more generic solution.
The reason is that comments can not appear after line continuation operator. The following is a SyntaxError:
if True \ # flake8: xxx
and False:
print('not reached')
So, it must be
if True \
and False: # flake8: xxx
print('not reached')
And that comment needs to apply to the previous line as well, in a predicable manner (strip all whitespace).
Burnsedia commented
tell me what you need done and I will do it for codemill$50