mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-08 21:54:48 +08:00
add pythonBoolean syntax
This commit is contained in:
@@ -159,7 +159,8 @@ if s:Python2Syntax()
|
||||
syn keyword pythonPreCondit as
|
||||
syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained
|
||||
else
|
||||
syn keyword pythonStatement as nonlocal False None True
|
||||
syn keyword pythonStatement as nonlocal
|
||||
syn keyword pythonBoolean True False None
|
||||
syn match pythonFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
|
||||
endif
|
||||
|
||||
@@ -523,6 +524,8 @@ if version >= 508 || !exists("did_python_syn_inits")
|
||||
HiLink pythonHexError Error
|
||||
HiLink pythonBinError Error
|
||||
|
||||
HiLink pythonBoolean Boolean
|
||||
|
||||
HiLink pythonBuiltinObj Structure
|
||||
HiLink pythonBuiltinFunc Function
|
||||
|
||||
|
||||
Reference in New Issue
Block a user