Commit acde7347 authored by Brett Cannon's avatar Brett Cannon

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

expression for the hell of it.
parent bf36409e
...@@ -911,6 +911,10 @@ New platforms ...@@ -911,6 +911,10 @@ New platforms
Tools/Demos 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 - Added two new files to Tools/scripts: pysource.py, which recursively
finds Python source files, and findnocoding.py, which finds Python finds Python source files, and findnocoding.py, which finds Python
source files that need an encoding declaration. source files that need an encoding declaration.
......
...@@ -65,10 +65,7 @@ def str_regexes(): ...@@ -65,10 +65,7 @@ def str_regexes():
skip = skip_regex.substitute(sep=separator) skip = skip_regex.substitute(sep=separator)
else: else:
skip = '' skip = ''
if not raw: contains = 'contains=pythonEscape' if not raw else ''
contains = 'contains=pythonEscape'
else:
contains = ''
yield regex_template.substitute(raw=raw, sep=separator, skip=skip, yield regex_template.substitute(raw=raw, sep=separator, skip=skip,
contains = contains) contains = contains)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment