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

+ 3
- 3
python.vim View File

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

+ 3
- 3
python3.0.vim View File

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