summaryrefslogtreecommitdiffstats
path: root/scripts/get_lexer_list.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/get_lexer_list.py')
-rwxr-xr-xscripts/get_lexer_list.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/get_lexer_list.py b/scripts/get_lexer_list.py
index 0ef6fe97a..9453ff733 100755
--- a/scripts/get_lexer_list.py
+++ b/scripts/get_lexer_list.py
@@ -5,11 +5,14 @@ import json
ret = []
+def dictify(list):
+ return {k:True for k in list}
+
for fullname, names, exts, mimetypes in pygments.lexers.get_all_lexers():
ret.append({
'fullname': fullname,
- 'names': names,
- 'extentions': exts,
- 'mimetypes': mimetypes,
+ 'names': dictify(names),
+ 'extentions': dictify(exts),
+ 'mimetypes': dictify(mimetypes),
})
print(json.dumps(ret))