Skip to content

Commit b446641

Browse files
author
Michael Doronin
committed
None is highlighted as constant value (which it is in python3)
1 parent 0b6be3f commit b446641

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

syntax/python.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ syn region FunctionParameters start='(' end=')' display contains=
214214
\ pythonRawString,
215215
\ pythonBytes,
216216
\ pythonBuiltinObj,
217+
\ pythonNone,
217218
\ pythonBuiltinFunc,
218219
\ pythonBoolean nextgroup=pythonRaiseFromStatement display contained
219220
syn match OptionalParameters /\i*\ze=/ display contained
@@ -430,7 +431,7 @@ syn match pythonFloat "\<\d\+\.\d*\%([eE][+-]\=\d\+\)\=[jJ]\=" display
430431
"
431432

432433
if s:Enabled("g:python_highlight_builtin_objs")
433-
syn keyword pythonBuiltinObj None
434+
syn keyword pythonNone None
434435
syn keyword pythonBoolean True False
435436
syn keyword pythonBuiltinObj Ellipsis NotImplemented
436437
syn match pythonBuiltinObj '\v(\.)@<!<(object|bool|int|float|tuple|str|list|dict|set|frozenset|bytearray|bytes)>' nextgroup=FunctionParameters
@@ -585,6 +586,7 @@ if version >= 508 || !exists("did_python_syn_inits")
585586
HiLink pythonBinError Error
586587

587588
HiLink pythonBoolean Boolean
589+
HiLink pythonNone Constant
588590

589591
HiLink pythonBuiltinObj Structure
590592
HiLink pythonBuiltinFunc Function

0 commit comments

Comments
 (0)