Browse Source

Fixed compatibility with pyrex.vim

Dmitry Vasiliev 15 years ago
parent
commit
4f9e8d7c0f
3 changed files with 14 additions and 6 deletions
  1. 8
    0
      CHANGES.txt
  2. 3
    3
      python.vim
  3. 3
    3
      python3.0.vim

+ 8
- 0
CHANGES.txt View File

@@ -1,3 +1,7 @@
1
+Revision 3.0.1 (2009-05-03):
2
+
3
+    - Fixed compatibility with pyrex.vim
4
+
1 5
 Revision 3.0.0 (2008-12-07):
2 6
 
3 7
     - Added support for non-ASCII identifiers;
@@ -12,6 +16,10 @@ Revision 3.0.0 (2008-12-07):
12 16
       "execfile", "file", "help", "intern", "long", "raw_input", "reduce",
13 17
       "reload", "unichr", "unicode", "xrange";
14 18
 
19
+Revision 2.6.4 (2009-05-03):
20
+
21
+    - Fixed compatibility with pyrex.vim
22
+
15 23
 Revision 2.6.3 (2008-09-29):
16 24
 
17 25
     - Return back trailing 'L' support for numbers. Actually it was changed for

+ 3
- 3
python.vim View File

@@ -4,7 +4,7 @@
4 4
 " URL:		http://www.hlabs.spb.ru/vim/python.vim
5 5
 " Last Change:	2008-09-29
6 6
 " Filenames:	*.py
7
-" Version:	2.6.3
7
+" Version:	2.6.4
8 8
 "
9 9
 " Based on python.vim (from Vim 6.1 distribution)
10 10
 " by Neil Schemenauer <nas@python.ca>
@@ -108,7 +108,7 @@ syn keyword pythonStatement	def class nextgroup=pythonFunction skipwhite
108 108
 syn match   pythonFunction	"[a-zA-Z_][a-zA-Z0-9_]*" display contained
109 109
 syn keyword pythonRepeat	for while
110 110
 syn keyword pythonConditional	if elif else
111
-syn keyword pythonImport	import from as
111
+syn keyword pythonPreCondit	import from as
112 112
 syn keyword pythonException	try except finally
113 113
 syn keyword pythonOperator	and in is not or
114 114
 
@@ -295,7 +295,7 @@ if version >= 508 || !exists("did_python_syn_inits")
295 295
   endif
296 296
 
297 297
   HiLink pythonStatement	Statement
298
-  HiLink pythonImport		Statement
298
+  HiLink pythonPreCondit	Statement
299 299
   HiLink pythonFunction		Function
300 300
   HiLink pythonConditional	Conditional
301 301
   HiLink pythonRepeat		Repeat

+ 3
- 3
python3.0.vim View File

@@ -4,7 +4,7 @@
4 4
 " URL:		http://www.hlabs.spb.ru/vim/python3.0.vim
5 5
 " Last Change:	2008-12-07
6 6
 " Filenames:	*.py
7
-" Version:	3.0.0
7
+" Version:	3.0.1
8 8
 "
9 9
 " Based on python.vim (from Vim 6.1 distribution)
10 10
 " by Neil Schemenauer <nas@python.ca>
@@ -106,7 +106,7 @@ syn keyword pythonStatement	def class nextgroup=pythonFunction skipwhite
106 106
 syn match   pythonFunction	"\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
107 107
 syn keyword pythonRepeat	for while
108 108
 syn keyword pythonConditional	if elif else
109
-syn keyword pythonImport	import from
109
+syn keyword pythonPreCondit	import from
110 110
 syn keyword pythonException	try except finally
111 111
 syn keyword pythonOperator	and in is not or
112 112
 
@@ -287,7 +287,7 @@ if version >= 508 || !exists("did_python_syn_inits")
287 287
   endif
288 288
 
289 289
   HiLink pythonStatement	Statement
290
-  HiLink pythonImport		Statement
290
+  HiLink pythonPreCondit	Statement
291 291
   HiLink pythonFunction		Function
292 292
   HiLink pythonConditional	Conditional
293 293
   HiLink pythonRepeat		Repeat