Skip to content

Commit f754260

Browse files
author
Paulo Batista
committed
redefinido mensagem de erro para comentário não fechado
1 parent 85fbdc8 commit f754260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lexical/automata/Automata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ def getTokenProcess(self, sourceCode):
956956
print("unexpected token in line", int(self.currentLine),":")
957957
print(str(sourceCode).split("\n")[0])
958958

959-
if str(sourceCode).split("\n")[0][0] == "}":
959+
if (str(sourceCode).split("\n")[0][0] == "}") or (str(sourceCode).split("\n")[0][0] == "{"):
960960
print("maybe you need to check comment block:", str(self.getCurrentLine(sourceCode)).strip().split(" ")[0])
961961
else:
962962
print("unrecognized token:",str(self.getCurrentLine(sourceCode)).strip().split(" ")[0])

0 commit comments

Comments
 (0)