Skip to content

Commit 7ecb80f

Browse files
cdonovicknfnty
authored andcommitted
Add pythonNone to pythonExpression
Closes vim-python#54
1 parent e5c90c6 commit 7ecb80f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

syntax/python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ else
9292
syn match pythonStatement '\<async\s\+def\>' nextgroup=pythonFunction skipwhite
9393
syn match pythonStatement '\<async\s\+with\>'
9494
syn match pythonStatement '\<async\s\+for\>'
95-
syn cluster pythonExpression contains=pythonStatement,pythonRepeat,pythonConditional,pythonOperator,pythonNumber,pythonHexNumber,pythonOctNumber,pythonBinNumber,pythonFloat,pythonString,pythonBytes,pythonBoolean,pythonBuiltinObj,pythonBuiltinFunc
95+
syn cluster pythonExpression contains=pythonStatement,pythonRepeat,pythonConditional,pythonOperator,pythonNumber,pythonHexNumber,pythonOctNumber,pythonBinNumber,pythonFloat,pythonString,pythonBytes,pythonBoolean,pythonNone,pythonBuiltinObj,pythonBuiltinFunc
9696
endif
9797

9898

tests/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ async def Test
233233
b"${test} ${test ${test}aname $$$ $test+nope"
234234

235235
f"{var}...{arr[123]} normal {var['{'] // 0xff} \"xzcb\" 'xzcb' {var['}'] + 1} text"
236-
f"{expr1 if True or False else expr2} wow {','.join(c.lower() for c in 'asdf')}"
236+
f"{expr1 if True or False else expr2} {None} wow {','.join(c.lower() for c in 'asdf')}"
237237
f"hello {expr:.2f} yes {(lambda: 0b1)():#03x} lol {var!r}"
238238
f'brackets: {{ 1 + 2 }} and {{{{ 3 + 4 }}}}'
239239
fr'this {that}'

0 commit comments

Comments
 (0)