diff options
Diffstat (limited to 'examples/matchPreviousDemo.py')
-rw-r--r-- | examples/matchPreviousDemo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/matchPreviousDemo.py b/examples/matchPreviousDemo.py index 34991f8..caa76e1 100644 --- a/examples/matchPreviousDemo.py +++ b/examples/matchPreviousDemo.py @@ -23,7 +23,7 @@ identifier = Word(alphas) classIdent = identifier("classname") # note that this also makes a copy of identifier
classHead = "class" + classIdent
classBody = "..."
-classEnd = "end" + matchPreviousLiteral(classIdent) + ';'
+classEnd = "end" + matchPreviousLiteral(classIdent) + ";"
classDefn = classHead + classBody + classEnd
# use this form to catch syntax error
|