Add Misc/NEWS entry for Misc/Vim/vim_syntax.py . Also use conditional

expression for the hell of it.
This commit is contained in:
Brett Cannon 2006-03-01 04:28:00 +00:00
parent bf36409e2a
commit acde7347a5
2 changed files with 5 additions and 4 deletions

View File

@ -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.

View 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)