diff --git a/src/pydocstyle/parser.py b/src/pydocstyle/parser.py
index <HASH>..<HASH> 100644
--- a/src/pydocstyle/parser.py
+++ b/src/pydocstyle/parser.py
@@ -487,6 +487,7 @@ class Parser:
                 self.dunder_all = None
                 self.dunder_all_error = 'Could not evaluate contents of __all__. '
                 return
+            self.stream.move()
 
     def parse_module(self):
         """Parse a module (and its children) and return a Module object."""
diff --git a/src/tests/parser_test.py b/src/tests/parser_test.py
index <HASH>..<HASH> 100644
--- a/src/tests/parser_test.py
+++ b/src/tests/parser_test.py
@@ -551,6 +551,9 @@ def test_complex_module():
         __all__ = 'foo', 'bar'
         foo = 1
     """),
+    CodeSnippet("""\
+        __all__ = ['foo', 'bar']  # never freeze
+    """),
 ))
 def test_dunder_all(code):
     """Test that __all__ is parsed correctly."""
fix parser dead loop when meet comment after __all__