From 4f1b30ebe70a6475ffeca1ce2c0dc48c8e70a5f9 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 14 Dec 2019 08:17:00 +1100 Subject: Lexilla tests. --- lexilla/test/examples/python/x.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lexilla/test/examples/python/x.py (limited to 'lexilla/test/examples/python/x.py') diff --git a/lexilla/test/examples/python/x.py b/lexilla/test/examples/python/x.py new file mode 100644 index 000000000..12c4b71df --- /dev/null +++ b/lexilla/test/examples/python/x.py @@ -0,0 +1,11 @@ +# Convert all punctuation characters except '_', '*', and '.' into spaces. +def depunctuate(s): + '''A docstring''' + """Docstring 2""" + d = "" + for ch in s: + if ch in 'abcde': + d = d + ch + else: + d = d + " " + return d -- cgit v1.2.3