def near(self, line, near, error_type=ERROR, word_re=None):

        if not near:
            return

        start, end = self.full_line(line)
        text = self.code[start:end]
        near = self.strip_quotes(near)

        # Add \b fences around the text if it begins/ends with a word character
        fence = ['', '']

        for i, pos in enumerate((0, -1)):
            if near[pos].isalnum() or near[pos] == '_':
                fence[i] = r'\b'

        pattern = NEAR_RE_TEMPLATE.format(fence[0], re.escape(near), fence[1])
        match = re.search(pattern, text)

        if match:
            start = match.start(1)
        else:
            start = -1

        if start != -1:
            self.range(line, start, len(near), error_type=error_type, word_re=word_re)
            return start
        else:
            return 0
Returns the next record in the stream, or raises
dataset/ETHPy150Open SublimeLinter/SublimeLinter3/lint/highlight.py/Highlight.near--crossover with--dataset/ETHPy150Open nigelsmall/py2neo/py2neo/database/__init__.py/Cursor.next