Permalink
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (8 sloc) 297 Bytes
"""
BracketHighlighter.
Copyright (c) 2013 - 2016 Isaac Muse <isaacmuse@gmail.com>
License: MIT
"""
def compare(name, first, second, bfr):
"""Pair the appropriate open bracket with its close."""
return "end" + bfr[first.begin:first.end].lower() == bfr[second.begin:second.end].lower()