diff options
author | Tim Hatch <tim@timhatch.com> | 2014-04-14 14:58:34 -0400 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-04-14 14:58:34 -0400 |
commit | 1add9dd59c4725a851e01f34107081b814903c98 (patch) | |
tree | 1b44ada8e9a20d677f0641de969536c0e30e4796 /scripts/get_vimkw.py | |
parent | e49fcb63aac76df1ca5863327928054e32802432 (diff) | |
parent | 3394e774607f349bdc153126a368b3fb8d07bd84 (diff) | |
download | pygments-1add9dd59c4725a851e01f34107081b814903c98.tar.gz |
Merged in ziggix/pygments-main (pull request #211)
Conflicts:
pygments/lexers/_mapping.py
pygments/lexers/other.py
Diffstat (limited to 'scripts/get_vimkw.py')
-rw-r--r-- | scripts/get_vimkw.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/get_vimkw.py b/scripts/get_vimkw.py index 153c88c3..4ea302f4 100644 --- a/scripts/get_vimkw.py +++ b/scripts/get_vimkw.py @@ -1,5 +1,5 @@ +from __future__ import print_function import re -from pprint import pprint r_line = re.compile(r"^(syn keyword vimCommand contained|syn keyword vimOption " r"contained|syn keyword vimAutoEvent contained)\s+(.*)") @@ -31,12 +31,12 @@ def getkw(input, output): for a, b in output_info.items(): b.sort() - print >>out, '%s=[%s]' % (a, ','.join(b)) + print('%s=[%s]' % (a, ','.join(b)), file=out) def is_keyword(w, keywords): for i in range(len(w), 0, -1): if w[:i] in keywords: - return signals[w[:i]][:len(w)] == w + return keywords[w[:i]][:len(w)] == w return False if __name__ == "__main__": |