original_docstring: Put Leo-specific rules to theList.
docstring: Put Leo-specific rules to theList.
docstring_tokens: Put Leo - specific rules to theList .
code: def addLeoRules(self, theDict):
          """Put Leo-specific rules to theList."""
          # pylint: disable=no-member
          table = [
              # Rules added at front are added in **reverse** order.
              ('@', self.match_leo_keywords, True),  # Called after all other Leo matchers.
                  # Debatable: Leo keywords override langauge keywords.
              ('@', self.match_at_color, True),
              ('@', self.match_at_killcolor, True),
              ('@', self.match_at_language, True),  # 2011/01/17
              ('@', self.match_at_nocolor, True),
              ('@', self.match_at_nocolor_node, True),
              ('@', self.match_at_wrap, True),  # 2015/06/22
              ('@', self.match_doc_part, True),
              ('f', self.match_url_f, True),
              ('g', self.match_url_g, True),
              ('h', self.match_url_h, True),
              ('m', self.match_url_m, True),
              ('n', self.match_url_n, True),
              ('p', self.match_url_p, True),
              ('t', self.match_url_t, True),
              ('u', self.match_unl, True),
              ('w', self.match_url_w, True),
              # ('<', self.match_image, True),
              ('<', self.match_section_ref, True),  # Called **first**.
              # Rules added at back are added in normal order.
              (' ', self.match_blanks, False),
              ('\t', self.match_tabs, False),
          ]
          if self.c.config.getBool("color-trailing-whitespace"):
              table += [
                  (' ', self.match_trailing_ws, True),
                  ('\t', self.match_trailing_ws, True),
              ]
          for ch, rule, atFront, in table:
              # Replace the bound method by an unbound method.
              rule = rule.__func__
              theList = theDict.get(ch, [])
              if rule not in theList:
                  if atFront:
                      theList.insert(0, rule)
                  else:
                      theList.append(rule)
                  theDict[ch] = theList
code_tokens: def addLeoRules ( self , theDict ) : table = [ ( '@' , self . match_leo_keywords , True ) , ( '@' , self . match_at_color , True ) , ( '@' , self . match_at_killcolor , True ) , ( '@' , self . match_at_language , True ) , ( '@' , self . match_at_nocolor , True ) , ( '@' , self . match_at_nocolor_node , True ) , ( '@' , self . match_at_wrap , True ) , ( '@' , self . match_doc_part , True ) , ( 'f' , self . match_url_f , True ) , ( 'g' , self . match_url_g , True ) , ( 'h' , self . match_url_h , True ) , ( 'm' , self . match_url_m , True ) , ( 'n' , self . match_url_n , True ) , ( 'p' , self . match_url_p , True ) , ( 't' , self . match_url_t , True ) , ( 'u' , self . match_unl , True ) , ( 'w' , self . match_url_w , True ) , ( '<' , self . match_section_ref , True ) , ( ' ' , self . match_blanks , False ) , ( '\t' , self . match_tabs , False ) , ] if self . c . config . getBool ( "color-trailing-whitespace" ) : table += [ ( ' ' , self . match_trailing_ws , True ) , ( '\t' , self . match_trailing_ws , True ) , ] for ch , rule , atFront , in table : rule = rule . __func__ theList = theDict . get ( ch , [ ] ) if rule not in theList : if atFront : theList . insert ( 0 , rule ) else : theList . append ( rule ) theDict [ ch ] = theList
short_docstring: Put Leo-specific rules to theList.
short_docstring_tokens: Put Leo - specific rules to theList .
comment: """Put Leo-specific rules to theList."""$SEP$# pylint: disable=no-member$SEP$# Rules added at front are added in **reverse** order.$SEP$# Called after all other Leo matchers.$SEP$# Debatable: Leo keywords override langauge keywords.$SEP$# 2011/01/17$SEP$# 2015/06/22$SEP$# ('<', self.match_image, True),$SEP$# Called **first**.$SEP$# Rules added at back are added in normal order.$SEP$# Replace the bound method by an unbound method.