Skip to content

Commit

Permalink
bottlepy#1177 Bug fix of missing regex escaped back slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahendley committed Nov 12, 2019
1 parent fb4ecad commit 099c4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down

0 comments on commit 099c4a2

Please sign in to comment.