فهرست منبع

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(