mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-10 22:51:54 +08:00
@@ -92,7 +92,7 @@ else
|
|||||||
syn match pythonStatement '\<async\s\+def\>' nextgroup=pythonFunction skipwhite
|
syn match pythonStatement '\<async\s\+def\>' nextgroup=pythonFunction skipwhite
|
||||||
syn match pythonStatement '\<async\s\+with\>'
|
syn match pythonStatement '\<async\s\+with\>'
|
||||||
syn match pythonStatement '\<async\s\+for\>'
|
syn match pythonStatement '\<async\s\+for\>'
|
||||||
syn cluster pythonExpression contains=pythonStatement,pythonRepeat,pythonConditional,pythonOperator,pythonNumber,pythonHexNumber,pythonOctNumber,pythonBinNumber,pythonFloat,pythonString,pythonBytes,pythonBoolean,pythonBuiltinObj,pythonBuiltinFunc
|
syn cluster pythonExpression contains=pythonStatement,pythonRepeat,pythonConditional,pythonOperator,pythonNumber,pythonHexNumber,pythonOctNumber,pythonBinNumber,pythonFloat,pythonString,pythonBytes,pythonBoolean,pythonNone,pythonBuiltinObj,pythonBuiltinFunc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ b"{0.name!r:b} {0[n]} {name!s: } {{test}} {{}} {} {.__len__:s}"
|
|||||||
b"${test} ${test ${test}aname $$$ $test+nope"
|
b"${test} ${test ${test}aname $$$ $test+nope"
|
||||||
|
|
||||||
f"{var}...{arr[123]} normal {var['{'] // 0xff} \"xzcb\" 'xzcb' {var['}'] + 1} text"
|
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"{expr1 if True or False else expr2} {None} wow {','.join(c.lower() for c in 'asdf')}"
|
||||||
f"hello {expr:.2f} yes {(lambda: 0b1)():#03x} lol {var!r}"
|
f"hello {expr:.2f} yes {(lambda: 0b1)():#03x} lol {var!r}"
|
||||||
f'brackets: {{ 1 + 2 }} and {{{{ 3 + 4 }}}}'
|
f'brackets: {{ 1 + 2 }} and {{{{ 3 + 4 }}}}'
|
||||||
fr'this {that}'
|
fr'this {that}'
|
||||||
|
|||||||
Reference in New Issue
Block a user