summaryrefslogtreecommitdiffstats
path: root/Misc/Vim/vim_syntax.py
diff options
context:
space:
mode:
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)