[syntax-error] Detail the reason why pylint can't analyse the file after a syntax error (#9589)



Closes #9588
diff --git a/doc/data/messages/s/syntax-error/details.rst b/doc/data/messages/s/syntax-error/details.rst
new file mode 100644
index 0000000..2f02260
--- /dev/null
+++ b/doc/data/messages/s/syntax-error/details.rst
@@ -0,0 +1,2 @@
+The python's ast builtin module cannot parse your code if there's a syntax error, so
+if there's a syntax error other messages won't be available at all.
diff --git a/doc/data/messages/s/syntax-error/related.rst b/doc/data/messages/s/syntax-error/related.rst
new file mode 100644
index 0000000..fc1fdf7
--- /dev/null
+++ b/doc/data/messages/s/syntax-error/related.rst
@@ -0,0 +1 @@
+- `Why can't pylint recover from a syntax error ? <https://stackoverflow.com/a/78419051/2519059>`_