diff options
author | Tim Hatch <tim@timhatch.com> | 2014-04-14 13:03:29 -0400 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-04-14 13:03:29 -0400 |
commit | e0efb984487bb2e99bd2684689fee6ded477a478 (patch) | |
tree | bca99bafdaa9aa26b42a309157d973c253b49927 /scripts/get_vimkw.py | |
parent | ae6b1507776410421b97faf0054111e34526dcbc (diff) | |
parent | 68296591d500a2106c8fe2b7dccd144b58a2d6b7 (diff) | |
download | pygments-e0efb984487bb2e99bd2684689fee6ded477a478.tar.gz |
Merged in brodie/pygments (pull request #191)
Conflicts:
pygments/lexers/jvm.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__": |