Report regexp syntax errors with the correct line number