Here's a small sample section of some code I'm writing with python and pygame, for some reason it seems to be claiming that some seemingly very simple and apparently accurate things are syntax errors. Here's possibly the most annoying example.
def Draw():
Surface.fill((255,255,255))
for square in squares:
pygame.draw.rect(Surface,(0,0,0),(square.x,square.y,height,height)
def main():
while True:
GetInput()
Move()
CollisionDetect()
Draw()
for some reason the word def at the start of line 6 get higlighted red and marked as an error, any idea why would be incredibly helpful, thanks :) (any other code you need, just comment).