Skip to content

Commit a0d21ac

Browse files
add pythonBoolean syntax
1 parent ebbdd09 commit a0d21ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

syntax/python.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ if s:Python2Syntax()
159159
syn keyword pythonPreCondit as
160160
syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained
161161
else
162-
syn keyword pythonStatement as nonlocal False None True
162+
syn keyword pythonStatement as nonlocal
163+
syn keyword pythonBoolean True False None
163164
syn match pythonFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
164165
endif
165166

@@ -523,6 +524,8 @@ if version >= 508 || !exists("did_python_syn_inits")
523524
HiLink pythonHexError Error
524525
HiLink pythonBinError Error
525526

527+
HiLink pythonBoolean Boolean
528+
526529
HiLink pythonBuiltinObj Structure
527530
HiLink pythonBuiltinFunc Function
528531

0 commit comments

Comments
 (0)