A syntax error is an error in how coding is written, pretty much. You may have missed off an "end", typed a word wrong, ended a line without closing a bracket, etc.
For example,
def main
do this
Would cause an error as there is no end after the block.
self.contents = bitmap.new(0,0,0,0
would cause an error as there's no closing bracket.