summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-22 16:28:53 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-22 16:28:53 (GMT)
commit24986204cfa14e31726a7f2ac5faeafdfad760f0 (patch)
tree2572cb38433405402ef47cb7a3724ebcc61386a6 /Lib
parentd7dc2eb708d20523359c6b26335d44824fc21b52 (diff)
downloadcpython-24986204cfa14e31726a7f2ac5faeafdfad760f0.zip
cpython-24986204cfa14e31726a7f2ac5faeafdfad760f0.tar.gz
cpython-24986204cfa14e31726a7f2ac5faeafdfad760f0.tar.bz2
Added "new" symbol defns for RE_ANSI_HEX and RE_NO_GNU_EXTENSIONS --
hopefully the last maintenance on this module, ever.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/regex_syntax.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/regex_syntax.py b/Lib/regex_syntax.py
index bb80f4e..8631f42 100644
--- a/Lib/regex_syntax.py
+++ b/Lib/regex_syntax.py
@@ -32,6 +32,12 @@ RE_NEWLINE_OR = 16
# *, +, ? - only special when not after the beginning, (, or |
RE_CONTEXT_INDEP_OPS = 32
+# ANSI sequences (\n etc) and \xhh
+RE_ANSI_HEX = 64
+
+# No GNU extensions
+RE_NO_GNU_EXTENSIONS = 128
+
# Now define combinations of bits for the standard possibilities.
RE_SYNTAX_AWK = (RE_NO_BK_PARENS | RE_NO_BK_VBAR | RE_CONTEXT_INDEP_OPS)
RE_SYNTAX_EGREP = (RE_SYNTAX_AWK | RE_NEWLINE_OR)