We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85fbdc8 commit f754260Copy full SHA for f754260
lexical/automata/Automata.py
@@ -956,7 +956,7 @@ def getTokenProcess(self, sourceCode):
956
print("unexpected token in line", int(self.currentLine),":")
957
print(str(sourceCode).split("\n")[0])
958
959
- if str(sourceCode).split("\n")[0][0] == "}":
+ if (str(sourceCode).split("\n")[0][0] == "}") or (str(sourceCode).split("\n")[0][0] == "{"):
960
print("maybe you need to check comment block:", str(self.getCurrentLine(sourceCode)).strip().split(" ")[0])
961
else:
962
print("unrecognized token:",str(self.getCurrentLine(sourceCode)).strip().split(" ")[0])
0 commit comments