Skip to content

Commit

Permalink
Add pygments lexer dump script
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed May 20, 2011
1 parent 81d0206 commit c532c31
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bin/pygments-lexers
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env python

from pygments.lexers import get_all_lexers

print "---"

for name, aliases, filenames, mimetypes in get_all_lexers():
print "- !ruby/struct:Linguist::Lexer"

print " name: %s" % name

print " aliases:"
for alias in aliases:
print " - %s" % alias

print " filenames:"
for filename in filenames:
print " - %s" % filename

print " mimetypes:"
for mimetype in mimetypes:
print " - %s" % mimetype

0 comments on commit c532c31

Please sign in to comment.