Browse Source

add pythonBoolean syntax

Yuri Habrusiev 5 years ago
parent
commit
a0d21acc1c
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      syntax/python.vim

+ 4
- 1
syntax/python.vim View File

@@ -159,7 +159,8 @@ if s:Python2Syntax()
159 159
   syn keyword pythonPreCondit   as
160 160
   syn match   pythonFunction    "[a-zA-Z_][a-zA-Z0-9_]*" display contained
161 161
 else
162
-  syn keyword pythonStatement   as nonlocal False None True
162
+  syn keyword pythonStatement   as nonlocal
163
+  syn keyword pythonBoolean     True False None
163 164
   syn match   pythonFunction    "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
164 165
 endif
165 166
 
@@ -523,6 +524,8 @@ if version >= 508 || !exists("did_python_syn_inits")
523 524
   HiLink pythonHexError         Error
524 525
   HiLink pythonBinError         Error
525 526
 
527
+  HiLink pythonBoolean          Boolean
528
+
526 529
   HiLink pythonBuiltinObj       Structure
527 530
   HiLink pythonBuiltinFunc      Function
528 531