Browse Source

Add highlight of classes

This gives a highlight to variables that are UpperCamelCase, e.g. Python
classes.
Lowe Thiderman 10 years ago
parent
commit
3ca684c75d
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      syntax/python.vim

+ 7
- 0
syntax/python.vim View File

193
 endif
193
 endif
194
 syn keyword pythonTodo		TODO FIXME XXX contained
194
 syn keyword pythonTodo		TODO FIXME XXX contained
195
 
195
 
196
+"
197
+" Classes
198
+"
199
+
200
+syn match pythonClass       "\(import \)\@<!\<[A-Z][a-zA-Z]*" display
201
+
196
 "
202
 "
197
 " Errors
203
 " Errors
198
 "
204
 "
486
   HiLink pythonRepeat           Repeat
492
   HiLink pythonRepeat           Repeat
487
   HiLink pythonException        Exception
493
   HiLink pythonException        Exception
488
   HiLink pythonOperator         Operator
494
   HiLink pythonOperator         Operator
495
+  HiLink pythonClass            Type
489
 
496
 
490
   HiLink pythonDecorator        Define
497
   HiLink pythonDecorator        Define
491
   HiLink pythonDottedName       Function
498
   HiLink pythonDottedName       Function