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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/get_lexer_list.py b/scripts/get_lexer_list.py
new file mode 100755
index 000000000..31e8e3650
--- /dev/null
+++ b/scripts/get_lexer_list.py
@@ -0,0 +1,7 @@
+#!/usr/bin/python
+
+import pygments.lexers
+
+for fullname, names, exts, _ in pygments.lexers.get_all_lexers():
+ for name in names:
+ print(("%s|%s") % (name, fullname))