chiark / gitweb /
gremlin/gremlin.in: Attach a name to the FormatSpec parser.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 17 Apr 2018 01:11:44 +0000 (02:11 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 19 Apr 2018 11:22:49 +0000 (12:22 +0100)
Just for diagnostic purposes.

gremlin/gremlin.in

index cca27893e3254163eeeee1d8746f107f789a055b..ce5492e3d65a987c7b2d17a84393a9ff1ee5694c 100644 (file)
@@ -411,6 +411,8 @@ class FormatParser (P.ParserElement):
   named format and its superclasses.
   """
 
   named format and its superclasses.
   """
 
+  name = 'format-spec'
+
   ## We cache the parser elements we generate to avoid enormous consing.
   CACHE = {}
 
   ## We cache the parser elements we generate to avoid enormous consing.
   CACHE = {}