@@ -239,8 +239,9 @@ def token_first(self, skip_ws=True, skip_cm=False):
239239 ignored too.
240240 """
241241 # this on is inconsistent, using Comment instead of T.Comment...
242- funcs = lambda tk : not ((skip_ws and tk .is_whitespace ) or
243- (skip_cm and imt (tk , t = T .Comment , i = Comment )))
242+ funcs = lambda tk : not ((skip_ws and tk .is_whitespace )
243+ or (skip_cm and imt (tk ,
244+ t = T .Comment , i = Comment )))
244245 return self ._token_matching (funcs )[1 ]
245246
246247 def token_next_by (self , i = None , m = None , t = None , idx = - 1 , end = None ):
@@ -276,8 +277,9 @@ def token_next(self, idx, skip_ws=True, skip_cm=False, _reverse=False):
276277 if idx is None :
277278 return None , None
278279 idx += 1 # alot of code usage current pre-compensates for this
279- funcs = lambda tk : not ((skip_ws and tk .is_whitespace ) or
280- (skip_cm and imt (tk , t = T .Comment , i = Comment )))
280+ funcs = lambda tk : not ((skip_ws and tk .is_whitespace )
281+ or (skip_cm and imt (tk ,
282+ t = T .Comment , i = Comment )))
281283 return self ._token_matching (funcs , idx , reverse = _reverse )
282284
283285 def token_index (self , token , start = 0 ):
0 commit comments