@@ -20,7 +20,7 @@ class ParenMatch:
2020 """Highlight matching parentheses
2121
2222 There are three supported style of paren matching, based loosely
23- on the Emacs options. The style is select based on the
23+ on the Emacs options. The style is select based on the
2424 HILITE_STYLE attribute; it can be changed used the set_style
2525 method.
2626
@@ -43,9 +43,9 @@ class ParenMatch:
4343 to the right of a right paren. I don't know how to do that in Tk,
4444 so I haven't bothered.
4545 """
46-
46+
4747 menudefs = []
48-
48+
4949 keydefs = {
5050 '<<flash-open-paren>>' : ('<KeyRelease-parenright>' ,
5151 '<KeyRelease-bracketright>' ,
@@ -146,7 +146,7 @@ class LastOpenBracketFinder:
146146 indentwidth = AutoIndent .indentwidth
147147 tabwidth = AutoIndent .tabwidth
148148 context_use_ps1 = AutoIndent .context_use_ps1
149-
149+
150150 def __init__ (self , editwin ):
151151 self .editwin = editwin
152152 self .text = editwin .text
@@ -158,7 +158,7 @@ def _find_offset_in_buf(self, lno):
158158 startatindex = `startat` + ".0"
159159 # rawtext needs to contain everything up to the last
160160 # character, which was the close paren. the parser also
161- # requires that the last line ends with "\n"
161+ # requires that the last line ends with "\n"
162162 rawtext = self .text .get (startatindex , "insert" )[:- 1 ] + "\n "
163163 y .set_str (rawtext )
164164 bod = y .find_good_parse_start (
@@ -175,7 +175,7 @@ def find(self, right_keysym_type):
175175 lno = index2line (self .text .index ("insert" ))
176176 i , buf = self ._find_offset_in_buf (lno )
177177 if i is None \
178- or keysym_type (buf [i ]) != right_keysym_type :
178+ or keysym_type (buf [i ]) != right_keysym_type :
179179 return None
180180 lines_back = string .count (buf [i :], "\n " ) - 1
181181 # subtract one for the "\n" added to please the parser
@@ -189,4 +189,3 @@ def inner(offset, startindex=startindex,
189189 icis = self .editwin .is_char_in_string ):
190190 return icis (startindex + "%dc" % offset )
191191 return inner
192-
0 commit comments