Skip to content

Commit 099c4a2

Browse files
committed
#1177 Bug fix of missing regex escaped back slashes
1 parent fb4ecad commit 099c4a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bottle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3430,8 +3430,8 @@ class StplParser(object):
34303430
# 2: Comments (until end of line, but not the newline itself)
34313431
_re_tok += '|(#.*)'
34323432
# 3,4: Open and close grouping tokens
3433-
_re_tok += '|([\[\{\(])'
3434-
_re_tok += '|([\]\}\)])'
3433+
_re_tok += '|([\\[\\{\\(])'
3434+
_re_tok += '|([\\]\\}\\)])'
34353435
# 5,6: Keywords that start or continue a python block (only start of line)
34363436
_re_tok += '|^([ \\t]*(?:if|for|while|with|try|def|class)\\b)' \
34373437
'|^([ \\t]*(?:elif|else|except|finally)\\b)'

0 commit comments

Comments
 (0)