Commits

Volker Birk  committed 54aa990

how_many() bug: Literal is missing

  • Participants
  • Parent commits 972b1a7

Comments (0)

Files changed (1)

File pypeg2/__init__.py

     elif _issubclass(grammar, Symbol) or isinstance(grammar, (RegEx, _RegEx)):
         return 1
 
-    elif isinstance(grammar, str):
+    elif isinstance(grammar, (str, Literal)):
         return 0
 
     elif isinstance(grammar, attr.Class):