original_docstring: 
          Colorize Leo's @ and @ doc constructs.
          Matches only at the start of the line.
          
docstring: Colorize Leo's @ and @ doc constructs.
  Matches only at the start of the line.
docstring_tokens: Colorize Leo ' s @ and @ doc constructs . Matches only at the start of the line .
code: def match_doc_part(self, s, i):
          """
          Colorize Leo's @ and @ doc constructs.
          Matches only at the start of the line.
          """
          if i != 0:
              return 0
          if g.match_word(s, i, '@doc'):
              j = i + 4
          elif g.match(s, i, '@') and (i + 1 >= len(s) or s[i + 1] in (' ', '\t', '\n')):
              j = i + 1
          else:
              return 0
          c = self.c
          self.colorRangeWithTag(s, 0, j, 'leokeyword')
          # New in Leo 5.5: optionally colorize doc parts using reStructuredText
          if c.config.getBool('color-doc-parts-as-rest'):
              # Switch langauges.
              self.after_doc_language = self.language
              self.language = 'rest'
              self.clearState()
              self.init(c.p)
              # Restart.
              self.setRestart(self.restartDocPart)
              # Do *not* color the text here!
              return j
          self.clearState()
          self.setRestart(self.restartDocPart)
          self.colorRangeWithTag(s, j, len(s), 'docpart')
          return len(s)
code_tokens: def match_doc_part ( self , s , i ) : if i != 0 : return 0 if g . match_word ( s , i , '@doc' ) : j = i + 4 elif g . match ( s , i , '@' ) and ( i + 1 >= len ( s ) or s [ i + 1 ] in ( ' ' , '\t' , '\n' ) ) : j = i + 1 else : return 0 c = self . c self . colorRangeWithTag ( s , 0 , j , 'leokeyword' ) if c . config . getBool ( 'color-doc-parts-as-rest' ) : self . after_doc_language = self . language self . language = 'rest' self . clearState ( ) self . init ( c . p ) self . setRestart ( self . restartDocPart ) return j self . clearState ( ) self . setRestart ( self . restartDocPart ) self . colorRangeWithTag ( s , j , len ( s ) , 'docpart' ) return len ( s )
short_docstring: Colorize Leo's @ and @ doc constructs.
short_docstring_tokens: Colorize Leo ' s @ and @ doc constructs .
comment: """
          Colorize Leo's @ and @ doc constructs.
          Matches only at the start of the line.
          """$SEP$# New in Leo 5.5: optionally colorize doc parts using reStructuredText$SEP$# Switch langauges.$SEP$# Restart.$SEP$# Do *not* color the text here!