diff options
author | Georg Brandl <georg@python.org> | 2014-01-18 13:29:19 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-18 13:29:19 +0100 |
commit | b6b690fb833e7031a3008509c1107f7567c065f3 (patch) | |
tree | d7b80f8e63919a94dfe7dc5bd8106d98ee4b5251 /scripts/get_vimkw.py | |
parent | a9169c157a05c82a1b8a7ffb92e7f159fb4ca0f8 (diff) | |
download | pygments-b6b690fb833e7031a3008509c1107f7567c065f3.tar.gz |
manual prettifying and small fixes after futurize run
Diffstat (limited to 'scripts/get_vimkw.py')
-rw-r--r-- | scripts/get_vimkw.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/get_vimkw.py b/scripts/get_vimkw.py index bfb26e64..4ea302f4 100644 --- a/scripts/get_vimkw.py +++ b/scripts/get_vimkw.py @@ -1,6 +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+(.*)") @@ -37,7 +36,7 @@ def getkw(input, output): 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__": |