diff options
author | Jharrod LaFon <jharrod.lafon@gmail.com> | 2014-04-14 18:06:42 -0400 |
---|---|---|
committer | Jharrod LaFon <jharrod.lafon@gmail.com> | 2014-04-14 18:06:42 -0400 |
commit | 1946764d7ecfd7c770c6e3bbadd5f78da67f6676 (patch) | |
tree | f15a1c76fea074704786e027fcbd723d0f2104d7 /scripts/get_vimkw.py | |
parent | eb1ea996fa37bed736ffa63fd5b96cb39cff7c7f (diff) | |
parent | 01faf9753ed8a008edd8c960cd42bc9a0594b780 (diff) | |
download | pygments-1946764d7ecfd7c770c6e3bbadd5f78da67f6676.tar.gz |
Correctly match valid identifiers in PHP that include unicode characters
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__": |