|
@@ -2,9 +2,9 @@
|
2
|
2
|
" Language: Python
|
3
|
3
|
" Maintainer: Dmitry Vasiliev <dima@hlabs.spb.ru>
|
4
|
4
|
" URL: http://www.hlabs.spb.ru/vim/python3.0.vim
|
5
|
|
-" Last Change: 2008-12-07
|
|
5
|
+" Last Change: 2009-07-24
|
6
|
6
|
" Filenames: *.py
|
7
|
|
-" Version: 3.0.1
|
|
7
|
+" Version: 3.0.2
|
8
|
8
|
"
|
9
|
9
|
" Based on python.vim (from Vim 6.1 distribution)
|
10
|
10
|
" by Neil Schemenauer <nas@python.ca>
|
|
@@ -18,6 +18,8 @@
|
18
|
18
|
" (strings and comments)
|
19
|
19
|
" John Eikenberry
|
20
|
20
|
" for the patch fixing small typo
|
|
21
|
+" Caleb Adamantine
|
|
22
|
+" for the patch fixing highlighting for decorators
|
21
|
23
|
|
22
|
24
|
"
|
23
|
25
|
" Options:
|
|
@@ -111,7 +113,9 @@ syn keyword pythonException try except finally
|
111
|
113
|
syn keyword pythonOperator and in is not or
|
112
|
114
|
|
113
|
115
|
" Decorators (new in Python 2.4)
|
114
|
|
-syn match pythonDecorator "@" display nextgroup=pythonFunction skipwhite
|
|
116
|
+syn match pythonDecorator "@" display nextgroup=pythonDottedName skipwhite
|
|
117
|
+syn match pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
|
|
118
|
+syn match pythonDot "\." display containedin=pythonDottedName
|
115
|
119
|
|
116
|
120
|
" Comments
|
117
|
121
|
syn match pythonComment "#.*$" display contains=pythonTodo,@Spell
|
|
@@ -295,6 +299,8 @@ if version >= 508 || !exists("did_python_syn_inits")
|
295
|
299
|
HiLink pythonOperator Operator
|
296
|
300
|
|
297
|
301
|
HiLink pythonDecorator Define
|
|
302
|
+ HiLink pythonDottedName Function
|
|
303
|
+ HiLink pythonDot Normal
|
298
|
304
|
|
299
|
305
|
HiLink pythonComment Comment
|
300
|
306
|
HiLink pythonCoding Special
|