Throw syntaxError when encounter one in symboldatabase (fixes #5572)