parent
766b923fbb
commit
ab5d13b363
5
lex.py
5
lex.py
|
@ -36,7 +36,10 @@ class Token(object):
|
||||||
return self.fqname() in names
|
return self.fqname() in names
|
||||||
def fqmatch(self, name, string):
|
def fqmatch(self, name, string):
|
||||||
return self.fqname() == name and self.string == string
|
return self.fqname() == name and self.string == string
|
||||||
def fqmatchs(self, name, strings):
|
def fqmatchs(self, name, strings, nocase=False):
|
||||||
|
if nocase:
|
||||||
|
return self.fqname() == name and self.string.lower() in strings
|
||||||
|
else:
|
||||||
return self.fqname() == name and self.string in strings
|
return self.fqname() == name and self.string in strings
|
||||||
def fqmatchp(self, pairs):
|
def fqmatchp(self, pairs):
|
||||||
for (name, string) in pairs:
|
for (name, string) in pairs:
|
||||||
|
|
Loading…
Reference in New Issue