Match compiler: Cosmetic changes after running pylint
This commit is contained in:
parent
71a236b3df
commit
542c6e82d3
|
@ -53,7 +53,7 @@ class MatchCompiler:
|
|||
|
||||
if isFindMatch:
|
||||
ret = '\nconst Token *tok = start_tok;\n'
|
||||
returnStatement = 'continue;\n';
|
||||
returnStatement = 'continue;\n'
|
||||
else:
|
||||
arg2 = ''
|
||||
if varid:
|
||||
|
@ -61,7 +61,7 @@ class MatchCompiler:
|
|||
|
||||
ret = '// ' + pattern + '\n'
|
||||
ret += 'static bool match' + str(nr) + '(const Token *tok'+arg2+') {\n'
|
||||
returnStatement = 'return false;\n';
|
||||
returnStatement = 'return false;\n'
|
||||
|
||||
tokens = pattern.split(' ')
|
||||
gotoNextToken = ''
|
||||
|
@ -352,7 +352,7 @@ class MatchCompiler:
|
|||
# Compute matchFunctions
|
||||
strFunctions = ''
|
||||
for function in matchFunctions:
|
||||
strFunctions += function;
|
||||
strFunctions += function
|
||||
|
||||
fout = open(destname, 'wt')
|
||||
fout.write(header+stringList+strFunctions+code)
|
||||
|
|
Loading…
Reference in New Issue