소스 검색

All _ symbol in TODO markers list.

avkonst 10 년 전
부모
커밋
c3f9de5135
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mainline/ext/std/code/todo.py

+ 1 - 1
mainline/ext/std/code/todo.py

@@ -43,7 +43,7 @@ class Plugin(mpp.api.Plugin,
         self.tags_list = options.__dict__['std.code.todo.tags'].split(',')
         self.tags_list.sort()
         for tag in self.tags_list:
-            if re.match(r'''^[A-Za-z0-9]+$''', tag) == None:
+            if re.match(r'''^[A-Za-z0-9_]+$''', tag) == None:
                 self.parser.error('option --std.code.todo.tags: tag {0} includes not allowed symbols'.
                                   format(tag))
         self.pattern_to_search = re.compile(