Browse Source

Merge 5297e8f24a97d4d42597f2c218894619eea0b2d3 into 69760cb3accce488cc072772ca918ac2cbf384ba

Lowe Thiderman 7 years ago
parent
commit
07a9253943
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      syntax/python.vim

+ 7
- 0
syntax/python.vim View File

@@ -209,6 +209,12 @@ if !s:Enabled("g:python_highlight_file_headers_as_comments")
209 209
 endif
210 210
 syn keyword pythonTodo		TODO FIXME XXX contained
211 211
 
212
+"
213
+" Classes
214
+"
215
+
216
+syn match pythonClass       "\(import \)\@<!\<[A-Z][a-zA-Z]*\>" display
217
+
212 218
 "
213 219
 " Errors
214 220
 "
@@ -502,6 +508,7 @@ if version >= 508 || !exists("did_python_syn_inits")
502 508
   HiLink pythonRepeat           Repeat
503 509
   HiLink pythonException        Exception
504 510
   HiLink pythonOperator         Operator
511
+  HiLink pythonClass            Type
505 512
 
506 513
   HiLink pythonDecorator        Define
507 514
   HiLink pythonDottedName       Function