소스 검색

Add highlight of classes

This gives a highlight to variables that are UpperCamelCase, e.g. Python
classes.
Lowe Thiderman 11 년 전
부모
커밋
3ca684c75d
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      syntax/python.vim

+ 7
- 0
syntax/python.vim 파일 보기

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