Add Misc/NEWS entry for Misc/Vim/vim_syntax.py . Also use conditional
authorBrett Cannon <bcannon@gmail.com>
Wed, 1 Mar 2006 04:28:00 +0000 (04:28 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 1 Mar 2006 04:28:00 +0000 (04:28 +0000)
expression for the hell of it.

Misc/NEWS
Misc/Vim/vim_syntax.py

index 63c2874c3779004a415cc077a47a310421e32a1c..accbcd09267c386dfdc17370bed8319aa648647b 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -911,6 +911,10 @@ New platforms
 Tools/Demos
 -----------
 
+- Created Misc/Vim/vim_syntax.py to auto-generate a python.vim file in that
+  directory for syntax highlighting in Vim.  Vim directory was added and placed
+  vimrc to it (was previous up a level).
+
 - Added two new files to Tools/scripts: pysource.py, which recursively
   finds Python source files, and findnocoding.py, which finds Python
   source files that need an encoding declaration.
index a4df48564680a1a22e01c8e8a4f01389905a5994..8ef5bb89d0ddd21689ce166a6750b77e913bf970 100644 (file)
@@ -65,10 +65,7 @@ def str_regexes():
                 skip = skip_regex.substitute(sep=separator)
             else:
                 skip = ''
-            if not raw:
-                contains = 'contains=pythonEscape'
-            else:
-                contains = ''
+            contains = 'contains=pythonEscape' if not raw else ''
             yield regex_template.substitute(raw=raw, sep=separator, skip=skip,
                                             contains = contains)