summaryrefslogtreecommitdiffstats
path: root/Misc/Vim/vim_syntax.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-03-01 04:28:00 (GMT)
committerBrett Cannon <bcannon@gmail.com>2006-03-01 04:28:00 (GMT)
commitacde7347a547ce515b42805cb18789591c03c016 (patch)
treecd3d6383ef543a9fe4f92b84d6bf03c007e8c32c /Misc/Vim/vim_syntax.py
parentbf36409e2a8171b441d5e0a2f1c9e02d31a35ae8 (diff)
downloadcpython-acde7347a547ce515b42805cb18789591c03c016.zip
cpython-acde7347a547ce515b42805cb18789591c03c016.tar.gz
cpython-acde7347a547ce515b42805cb18789591c03c016.tar.bz2
Add Misc/NEWS entry for Misc/Vim/vim_syntax.py . Also use conditional
expression for the hell of it.
Diffstat (limited to 'Misc/Vim/vim_syntax.py')
-rw-r--r--Misc/Vim/vim_syntax.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Misc/Vim/vim_syntax.py b/Misc/Vim/vim_syntax.py
index a4df485..8ef5bb8 100644
--- a/Misc/Vim/vim_syntax.py
+++ b/Misc/Vim/vim_syntax.py
@@ -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)