[Patch] Fix Python indentation with trailing TODO comments

2013-07-09 Thread Chris Morgan
File: runtime/indent/python.vim When checking for a colon at the end of a statement to decide whether to indent the next line, it strips trailing comments; however, the syntax group can be pythonTodo rather than pythonComment, which it was not detecting. Thus, a line like this: if True: #

Re: [Patch] Fix Python indentation with trailing TODO comments

2013-07-09 Thread Bram Moolenaar
Chris Morgan wrote: > File: runtime/indent/python.vim > > When checking for a colon at the end of a statement to decide whether > to indent the next line, it strips trailing comments; however, the > syntax group can be pythonTodo rather than pythonComment, which it was > not detecting. > > Thus