1. Georg Brandl
  2. pygments-main


gbrandl  committed 56eaa68

Add note about empty regex.

  • Participants
  • Parent commits e712868
  • Branches trunk

Comments (0)

Files changed (1)

File docs/src/lexerdevelopment.txt

View file
   by putting values into the stack that don't exist in the token map. Also
   removing ``'root'`` from the stack can result in strange errors!
+- An empty regex at the end of a state list, combined with ``'#pop'``, can
+  act as a return point from a state that doesn't have a clear end marker.
 Using multiple lexers