Should this be a `ValueError`? `SyntaxError` is for Python code.