summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2008-04-26 20:18:23 +0200
committergbrandl <devnull@localhost>2008-04-26 20:18:23 +0200
commit72235f16ba387b95f0e8032b13764ccb288ae444 (patch)
tree9d9c93a5a0f6c330a6378076ac5a6bfcfea0df6c
parentdc713642003e9bb042039cd49afb19b07b7087a8 (diff)
downloadpygments-72235f16ba387b95f0e8032b13764ccb288ae444.tar.gz
Add note about empty regex.
-rw-r--r--docs/src/lexerdevelopment.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/src/lexerdevelopment.txt b/docs/src/lexerdevelopment.txt
index 0d19c967..d7961bfc 100644
--- a/docs/src/lexerdevelopment.txt
+++ b/docs/src/lexerdevelopment.txt
@@ -307,6 +307,9 @@ There are a few more things you can do with states:
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
=====================