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