diff options
author | Andrew Hendley <andrew.hendley@jbwere.com> | 2019-11-12 15:25:18 +1100 |
---|---|---|
committer | Andrew Hendley <andrew.hendley@jbwere.com> | 2019-11-12 15:25:18 +1100 |
commit | 099c4a2e8bb1e6e2c42056c6aef004024fbd8c7c (patch) | |
tree | 8a3562bb91bfe55ad9c78614c4052d766fdf0c77 | |
parent | fb4ecad8597509361aa544158751db02b70e0d26 (diff) | |
download | bottle-099c4a2e8bb1e6e2c42056c6aef004024fbd8c7c.tar.gz |
#1177 Bug fix of missing regex escaped back slashes
-rw-r--r-- | bottle.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3430,8 +3430,8 @@ class StplParser(object): # 2: Comments (until end of line, but not the newline itself) _re_tok += '|(#.*)' # 3,4: Open and close grouping tokens - _re_tok += '|([\[\{\(])' - _re_tok += '|([\]\}\)])' + _re_tok += '|([\\[\\{\\(])' + _re_tok += '|([\\]\\}\\)])' # 5,6: Keywords that start or continue a python block (only start of line) _re_tok += '|^([ \\t]*(?:if|for|while|with|try|def|class)\\b)' \ '|^([ \\t]*(?:elif|else|except|finally)\\b)' |