original_docstring: True if p's parents enable coloring in p.
docstring: True if p's parents enable coloring in p.
docstring_tokens: True if p ' s parents enable coloring in p .
code: def useSyntaxColoring(self, p):
          """True if p's parents enable coloring in p."""
          # Special cases for the selected node.
          d = self.findColorDirectives(p)
          if 'killcolor' in d:
              return False
          if 'nocolor-node' in d:
              return False
          # Now look at the parents.
          for p in p.parents():
              d = self.findColorDirectives(p)
              # @killcolor anywhere disables coloring.
              if 'killcolor' in d:
                  return False
              # unambiguous @color enables coloring.
              if 'color' in d and 'nocolor' not in d:
                  return True
              # Unambiguous @nocolor disables coloring.
              if 'nocolor' in d and 'color' not in d:
                  return False
          return True
code_tokens: def useSyntaxColoring ( self , p ) : d = self . findColorDirectives ( p ) if 'killcolor' in d : return False if 'nocolor-node' in d : return False for p in p . parents ( ) : d = self . findColorDirectives ( p ) if 'killcolor' in d : return False if 'color' in d and 'nocolor' not in d : return True if 'nocolor' in d and 'color' not in d : return False return True
short_docstring: True if p's parents enable coloring in p.
short_docstring_tokens: True if p ' s parents enable coloring in p .
comment: """True if p's parents enable coloring in p."""$SEP$# Special cases for the selected node.$SEP$# Now look at the parents.$SEP$# @killcolor anywhere disables coloring.$SEP$# unambiguous @color enables coloring.$SEP$# Unambiguous @nocolor disables coloring.