title: In Vimscript, is it possible to access information known by the syntax highlighter?
body: <p>For example, if I am writing a Vimscript function to operate on Python syntax, it might be useful to know whether a line is regular code, a comment, or enclosed in triple-quotes. I assume that the syntax highligher has already figured out such things. Can I easily access that information in my own Vim functions, or do I have to roll my own parsing logic?</p>
  
  <pre><code>def eight_the_hard_way():
      '''
      Blah blah.
      '''
      # Blort!
      x = 4 + 4
      return x
  </code></pre>
  
  <p>I've searched a fair bit for this information, but haven't found anything directly on this topic so far.</p>