We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 374ebd6 commit ea91111Copy full SHA for ea91111
Source/Modules/Skyrim/Linter.py
@@ -777,7 +777,7 @@ def Statement(self):
777
elif self.token.type == self.DOCUMENTATION_STRING:
778
self.Accept(self.DOCUMENTATION_STRING)
779
self.stat = Statement(self.STAT_DOCUMENTATION, line, Documentation(self.GetPreviousValue()))
780
- elif self.token.type == self.KW_STATE or (self.token.type == self.KW_AUTO and self.Peek().type == self.KW_STATE):
+ elif self.token.type == self.KW_STATE or (self.token.type == self.KW_AUTO and self.Peek() != None and self.Peek().type == self.KW_STATE):
781
self.State()
782
elif self.token.type == self.KW_ENDSTATE:
783
self.Accept(self.KW_ENDSTATE)
0 commit comments