--- a/QScintilla/Editor.py Sun Sep 02 11:07:03 2018 +0200 +++ b/QScintilla/Editor.py Sun Sep 30 11:38:40 2018 +0200 @@ -2626,6 +2626,10 @@ lineIndex += 1 shouldBreak = False + if line.endswith("__NO-TASK__"): + # ignore potential task marker + continue + for taskType, taskMarkers in markers.items(): for taskMarker in taskMarkers: index = line.find(taskMarker) @@ -4751,8 +4755,10 @@ self.__acCompletionsFinished += 1 # Got all results from auto completer? - if self.__acCompletionsFinished >= len( - self.__completionListAsyncHookFunctions): + if self.__acCompletionsFinished >= ( + len(self.__completionListAsyncHookFunctions) + + len(self.__completionListHookFunctions) + ): self.__acWatchdog.stop() # Autocomplete with QScintilla if no results present