move {{ and }} matching so that it gets highlighted correctly

This commit is contained in:
lilydjwg
2017-07-27 16:28:05 +08:00
committed by nfnty
parent 3a6000e560
commit 35841908e4
2 changed files with 3 additions and 2 deletions

View File

@@ -235,6 +235,7 @@ b"${test} ${test ${test}aname $$$ $test+nope"
f"{var}...{arr[123]} normal {var['{'] // 0xff} \"xzcb\" 'xzcb' {var['}'] + 1} text"
f"{expr1 if True or False else expr2} wow {','.join(c.lower() for c in 'asdf')}"
f"hello {expr:.2f} yes {(lambda: 0b1)():#03x} lol {var!r}"
f'brackets: {{ 1 + 2 }} and {{{{ 3 + 4 }}}}'
# Doctests.