'Return the scoperef for the given position in this buffer.
A "scoperef" is a 2-tuple:
(<blob>, <lpath>)
where <blob> is the ciElementTree blob for the buffer content
and <lpath> is an ordered list of names into the blob
identifying the scope.
If no relevant scope is found (e.g. for example, in markup
content in PHP) then None is returned.
See Buffer.scoperef_from_pos() docstring for more details.'

def scoperef_from_pos(self, pos):

    lang = self.lang_from_pos(pos)
    try:
        blob = self.blob_from_lang[lang]
    except KeyError:
        return None
    line = (self.accessor.line_from_pos(pos) + 1)
    return self.scoperef_from_blob_and_line(blob, line)
