Skip to content

Commit ea91111

Browse files
committed
Updated linter
1 parent 374ebd6 commit ea91111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Modules/Skyrim/Linter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ def Statement(self):
777777
elif self.token.type == self.DOCUMENTATION_STRING:
778778
self.Accept(self.DOCUMENTATION_STRING)
779779
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):
780+
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):
781781
self.State()
782782
elif self.token.type == self.KW_ENDSTATE:
783783
self.Accept(self.KW_ENDSTATE)

0 commit comments

Comments
 (0)