gitlab-pygments.rb 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/Gemfile +2 -0
- data/README.md +91 -0
- data/Rakefile +78 -0
- data/bench.rb +22 -0
- data/cache-lexers.rb +8 -0
- data/lexers +0 -0
- data/lib/pygments/lexer.rb +148 -0
- data/lib/pygments/mentos.py +344 -0
- data/lib/pygments/popen.rb +389 -0
- data/lib/pygments/version.rb +3 -0
- data/lib/pygments.rb +8 -0
- data/pygments.rb.gemspec +24 -0
- data/test/test_data.c +2581 -0
- data/test/test_data.py +514 -0
- data/test/test_data_generated +2582 -0
- data/test/test_pygments.rb +276 -0
- data/vendor/custom_formatters/gitlab.py +171 -0
- data/vendor/custom_lexers/github.py +362 -0
- data/vendor/pygments-main/AUTHORS +115 -0
- data/vendor/pygments-main/CHANGES +762 -0
- data/vendor/pygments-main/LICENSE +25 -0
- data/vendor/pygments-main/MANIFEST.in +6 -0
- data/vendor/pygments-main/Makefile +59 -0
- data/vendor/pygments-main/REVISION +1 -0
- data/vendor/pygments-main/TODO +15 -0
- data/vendor/pygments-main/docs/generate.py +472 -0
- data/vendor/pygments-main/docs/pygmentize.1 +94 -0
- data/vendor/pygments-main/docs/src/api.txt +270 -0
- data/vendor/pygments-main/docs/src/authors.txt +5 -0
- data/vendor/pygments-main/docs/src/changelog.txt +5 -0
- data/vendor/pygments-main/docs/src/cmdline.txt +147 -0
- data/vendor/pygments-main/docs/src/filterdevelopment.txt +70 -0
- data/vendor/pygments-main/docs/src/filters.txt +42 -0
- data/vendor/pygments-main/docs/src/formatterdevelopment.txt +169 -0
- data/vendor/pygments-main/docs/src/formatters.txt +48 -0
- data/vendor/pygments-main/docs/src/index.txt +69 -0
- data/vendor/pygments-main/docs/src/installation.txt +71 -0
- data/vendor/pygments-main/docs/src/integrate.txt +43 -0
- data/vendor/pygments-main/docs/src/lexerdevelopment.txt +551 -0
- data/vendor/pygments-main/docs/src/lexers.txt +67 -0
- data/vendor/pygments-main/docs/src/moinmoin.txt +39 -0
- data/vendor/pygments-main/docs/src/plugins.txt +93 -0
- data/vendor/pygments-main/docs/src/quickstart.txt +202 -0
- data/vendor/pygments-main/docs/src/rstdirective.txt +22 -0
- data/vendor/pygments-main/docs/src/styles.txt +143 -0
- data/vendor/pygments-main/docs/src/tokens.txt +349 -0
- data/vendor/pygments-main/docs/src/unicode.txt +49 -0
- data/vendor/pygments-main/external/markdown-processor.py +67 -0
- data/vendor/pygments-main/external/moin-parser.py +112 -0
- data/vendor/pygments-main/external/pygments.bashcomp +38 -0
- data/vendor/pygments-main/external/rst-directive-old.py +77 -0
- data/vendor/pygments-main/external/rst-directive.py +83 -0
- data/vendor/pygments-main/ez_setup.py +276 -0
- data/vendor/pygments-main/pygmentize +7 -0
- data/vendor/pygments-main/pygments/__init__.py +91 -0
- data/vendor/pygments-main/pygments/cmdline.py +433 -0
- data/vendor/pygments-main/pygments/console.py +74 -0
- data/vendor/pygments-main/pygments/filter.py +74 -0
- data/vendor/pygments-main/pygments/filters/__init__.py +357 -0
- data/vendor/pygments-main/pygments/formatter.py +92 -0
- data/vendor/pygments-main/pygments/formatters/__init__.py +68 -0
- data/vendor/pygments-main/pygments/formatters/_mapping.py +94 -0
- data/vendor/pygments-main/pygments/formatters/bbcode.py +109 -0
- data/vendor/pygments-main/pygments/formatters/gitlab.py +171 -0
- data/vendor/pygments-main/pygments/formatters/html.py +750 -0
- data/vendor/pygments-main/pygments/formatters/img.py +553 -0
- data/vendor/pygments-main/pygments/formatters/latex.py +378 -0
- data/vendor/pygments-main/pygments/formatters/other.py +117 -0
- data/vendor/pygments-main/pygments/formatters/rtf.py +136 -0
- data/vendor/pygments-main/pygments/formatters/svg.py +154 -0
- data/vendor/pygments-main/pygments/formatters/terminal.py +112 -0
- data/vendor/pygments-main/pygments/formatters/terminal256.py +222 -0
- data/vendor/pygments-main/pygments/lexer.py +697 -0
- data/vendor/pygments-main/pygments/lexers/__init__.py +229 -0
- data/vendor/pygments-main/pygments/lexers/_asybuiltins.py +1645 -0
- data/vendor/pygments-main/pygments/lexers/_clbuiltins.py +232 -0
- data/vendor/pygments-main/pygments/lexers/_luabuiltins.py +249 -0
- data/vendor/pygments-main/pygments/lexers/_mapping.py +298 -0
- data/vendor/pygments-main/pygments/lexers/_phpbuiltins.py +3787 -0
- data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +232 -0
- data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +29 -0
- data/vendor/pygments-main/pygments/lexers/_vimbuiltins.py +3 -0
- data/vendor/pygments-main/pygments/lexers/agile.py +1803 -0
- data/vendor/pygments-main/pygments/lexers/asm.py +360 -0
- data/vendor/pygments-main/pygments/lexers/compiled.py +2891 -0
- data/vendor/pygments-main/pygments/lexers/dotnet.py +636 -0
- data/vendor/pygments-main/pygments/lexers/functional.py +1832 -0
- data/vendor/pygments-main/pygments/lexers/github.py +362 -0
- data/vendor/pygments-main/pygments/lexers/hdl.py +356 -0
- data/vendor/pygments-main/pygments/lexers/jvm.py +847 -0
- data/vendor/pygments-main/pygments/lexers/math.py +1072 -0
- data/vendor/pygments-main/pygments/lexers/other.py +3339 -0
- data/vendor/pygments-main/pygments/lexers/parsers.py +695 -0
- data/vendor/pygments-main/pygments/lexers/shell.py +361 -0
- data/vendor/pygments-main/pygments/lexers/special.py +100 -0
- data/vendor/pygments-main/pygments/lexers/sql.py +559 -0
- data/vendor/pygments-main/pygments/lexers/templates.py +1631 -0
- data/vendor/pygments-main/pygments/lexers/text.py +1753 -0
- data/vendor/pygments-main/pygments/lexers/web.py +2864 -0
- data/vendor/pygments-main/pygments/plugin.py +74 -0
- data/vendor/pygments-main/pygments/scanner.py +104 -0
- data/vendor/pygments-main/pygments/style.py +117 -0
- data/vendor/pygments-main/pygments/styles/__init__.py +70 -0
- data/vendor/pygments-main/pygments/styles/autumn.py +65 -0
- data/vendor/pygments-main/pygments/styles/borland.py +51 -0
- data/vendor/pygments-main/pygments/styles/bw.py +49 -0
- data/vendor/pygments-main/pygments/styles/colorful.py +81 -0
- data/vendor/pygments-main/pygments/styles/default.py +73 -0
- data/vendor/pygments-main/pygments/styles/emacs.py +72 -0
- data/vendor/pygments-main/pygments/styles/friendly.py +72 -0
- data/vendor/pygments-main/pygments/styles/fruity.py +42 -0
- data/vendor/pygments-main/pygments/styles/manni.py +75 -0
- data/vendor/pygments-main/pygments/styles/monokai.py +106 -0
- data/vendor/pygments-main/pygments/styles/murphy.py +80 -0
- data/vendor/pygments-main/pygments/styles/native.py +65 -0
- data/vendor/pygments-main/pygments/styles/pastie.py +75 -0
- data/vendor/pygments-main/pygments/styles/perldoc.py +69 -0
- data/vendor/pygments-main/pygments/styles/rrt.py +33 -0
- data/vendor/pygments-main/pygments/styles/tango.py +141 -0
- data/vendor/pygments-main/pygments/styles/trac.py +63 -0
- data/vendor/pygments-main/pygments/styles/vim.py +63 -0
- data/vendor/pygments-main/pygments/styles/vs.py +38 -0
- data/vendor/pygments-main/pygments/token.py +195 -0
- data/vendor/pygments-main/pygments/unistring.py +130 -0
- data/vendor/pygments-main/pygments/util.py +232 -0
- data/vendor/pygments-main/scripts/check_sources.py +242 -0
- data/vendor/pygments-main/scripts/detect_missing_analyse_text.py +30 -0
- data/vendor/pygments-main/scripts/epydoc.css +280 -0
- data/vendor/pygments-main/scripts/find_codetags.py +205 -0
- data/vendor/pygments-main/scripts/find_error.py +171 -0
- data/vendor/pygments-main/scripts/get_vimkw.py +43 -0
- data/vendor/pygments-main/scripts/pylintrc +301 -0
- data/vendor/pygments-main/scripts/reindent.py +291 -0
- data/vendor/pygments-main/scripts/vim2pygments.py +933 -0
- data/vendor/pygments-main/setup.cfg +6 -0
- data/vendor/pygments-main/setup.py +88 -0
- data/vendor/pygments-main/tests/dtds/HTML4-f.dtd +37 -0
- data/vendor/pygments-main/tests/dtds/HTML4-s.dtd +869 -0
- data/vendor/pygments-main/tests/dtds/HTML4.dcl +88 -0
- data/vendor/pygments-main/tests/dtds/HTML4.dtd +1092 -0
- data/vendor/pygments-main/tests/dtds/HTML4.soc +9 -0
- data/vendor/pygments-main/tests/dtds/HTMLlat1.ent +195 -0
- data/vendor/pygments-main/tests/dtds/HTMLspec.ent +77 -0
- data/vendor/pygments-main/tests/dtds/HTMLsym.ent +241 -0
- data/vendor/pygments-main/tests/examplefiles/ANTLRv3.g +608 -0
- data/vendor/pygments-main/tests/examplefiles/AcidStateAdvanced.hs +209 -0
- data/vendor/pygments-main/tests/examplefiles/AlternatingGroup.mu +102 -0
- data/vendor/pygments-main/tests/examplefiles/CPDictionary.j +611 -0
- data/vendor/pygments-main/tests/examplefiles/Constants.mo +158 -0
- data/vendor/pygments-main/tests/examplefiles/DancingSudoku.lhs +411 -0
- data/vendor/pygments-main/tests/examplefiles/Errors.scala +18 -0
- data/vendor/pygments-main/tests/examplefiles/File.hy +174 -0
- data/vendor/pygments-main/tests/examplefiles/Intro.java +1660 -0
- data/vendor/pygments-main/tests/examplefiles/Makefile +1131 -0
- data/vendor/pygments-main/tests/examplefiles/Object.st +4394 -0
- data/vendor/pygments-main/tests/examplefiles/OrderedMap.hx +584 -0
- data/vendor/pygments-main/tests/examplefiles/SmallCheck.hs +378 -0
- data/vendor/pygments-main/tests/examplefiles/Sorting.mod +470 -0
- data/vendor/pygments-main/tests/examplefiles/Sudoku.lhs +382 -0
- data/vendor/pygments-main/tests/examplefiles/addressbook.proto +30 -0
- data/vendor/pygments-main/tests/examplefiles/antlr_throws +1 -0
- data/vendor/pygments-main/tests/examplefiles/apache2.conf +393 -0
- data/vendor/pygments-main/tests/examplefiles/as3_test.as +143 -0
- data/vendor/pygments-main/tests/examplefiles/as3_test2.as +46 -0
- data/vendor/pygments-main/tests/examplefiles/as3_test3.as +3 -0
- data/vendor/pygments-main/tests/examplefiles/aspx-cs_example +27 -0
- data/vendor/pygments-main/tests/examplefiles/badcase.java +2 -0
- data/vendor/pygments-main/tests/examplefiles/batchfile.bat +49 -0
- data/vendor/pygments-main/tests/examplefiles/boot-9.scm +1557 -0
- data/vendor/pygments-main/tests/examplefiles/cells.ps +515 -0
- data/vendor/pygments-main/tests/examplefiles/ceval.c +2604 -0
- data/vendor/pygments-main/tests/examplefiles/cheetah_example.html +13 -0
- data/vendor/pygments-main/tests/examplefiles/classes.dylan +40 -0
- data/vendor/pygments-main/tests/examplefiles/condensed_ruby.rb +10 -0
- data/vendor/pygments-main/tests/examplefiles/coq_RelationClasses +447 -0
- data/vendor/pygments-main/tests/examplefiles/database.pytb +20 -0
- data/vendor/pygments-main/tests/examplefiles/de.MoinMoin.po +2461 -0
- data/vendor/pygments-main/tests/examplefiles/demo.ahk +181 -0
- data/vendor/pygments-main/tests/examplefiles/demo.cfm +38 -0
- data/vendor/pygments-main/tests/examplefiles/django_sample.html+django +68 -0
- data/vendor/pygments-main/tests/examplefiles/dwarf.cw +17 -0
- data/vendor/pygments-main/tests/examplefiles/erl_session +10 -0
- data/vendor/pygments-main/tests/examplefiles/escape_semicolon.clj +1 -0
- data/vendor/pygments-main/tests/examplefiles/evil_regex.js +48 -0
- data/vendor/pygments-main/tests/examplefiles/example.c +2080 -0
- data/vendor/pygments-main/tests/examplefiles/example.cls +15 -0
- data/vendor/pygments-main/tests/examplefiles/example.cpp +2363 -0
- data/vendor/pygments-main/tests/examplefiles/example.gs +106 -0
- data/vendor/pygments-main/tests/examplefiles/example.gst +7 -0
- data/vendor/pygments-main/tests/examplefiles/example.kt +47 -0
- data/vendor/pygments-main/tests/examplefiles/example.lua +250 -0
- data/vendor/pygments-main/tests/examplefiles/example.moo +26 -0
- data/vendor/pygments-main/tests/examplefiles/example.moon +629 -0
- data/vendor/pygments-main/tests/examplefiles/example.nim +1010 -0
- data/vendor/pygments-main/tests/examplefiles/example.ns2 +69 -0
- data/vendor/pygments-main/tests/examplefiles/example.p +34 -0
- data/vendor/pygments-main/tests/examplefiles/example.pas +2708 -0
- data/vendor/pygments-main/tests/examplefiles/example.rb +1852 -0
- data/vendor/pygments-main/tests/examplefiles/example.rhtml +561 -0
- data/vendor/pygments-main/tests/examplefiles/example.sh-session +19 -0
- data/vendor/pygments-main/tests/examplefiles/example.sml +156 -0
- data/vendor/pygments-main/tests/examplefiles/example.snobol +15 -0
- data/vendor/pygments-main/tests/examplefiles/example.tea +34 -0
- data/vendor/pygments-main/tests/examplefiles/example.u +548 -0
- data/vendor/pygments-main/tests/examplefiles/example.weechatlog +9 -0
- data/vendor/pygments-main/tests/examplefiles/example.xhtml +376 -0
- data/vendor/pygments-main/tests/examplefiles/example.yaml +302 -0
- data/vendor/pygments-main/tests/examplefiles/example2.aspx +29 -0
- data/vendor/pygments-main/tests/examplefiles/example_elixir.ex +363 -0
- data/vendor/pygments-main/tests/examplefiles/example_file.fy +128 -0
- data/vendor/pygments-main/tests/examplefiles/firefox.mak +586 -0
- data/vendor/pygments-main/tests/examplefiles/flipflop.sv +19 -0
- data/vendor/pygments-main/tests/examplefiles/foo.sce +6 -0
- data/vendor/pygments-main/tests/examplefiles/format.ml +1213 -0
- data/vendor/pygments-main/tests/examplefiles/fucked_up.rb +77 -0
- data/vendor/pygments-main/tests/examplefiles/function.mu +1 -0
- data/vendor/pygments-main/tests/examplefiles/functional.rst +1472 -0
- data/vendor/pygments-main/tests/examplefiles/genclass.clj +510 -0
- data/vendor/pygments-main/tests/examplefiles/genshi_example.xml+genshi +193 -0
- data/vendor/pygments-main/tests/examplefiles/genshitext_example.genshitext +33 -0
- data/vendor/pygments-main/tests/examplefiles/glsl.frag +7 -0
- data/vendor/pygments-main/tests/examplefiles/glsl.vert +13 -0
- data/vendor/pygments-main/tests/examplefiles/html+php_faulty.php +1 -0
- data/vendor/pygments-main/tests/examplefiles/http_request_example +14 -0
- data/vendor/pygments-main/tests/examplefiles/http_response_example +27 -0
- data/vendor/pygments-main/tests/examplefiles/import.hs +4 -0
- data/vendor/pygments-main/tests/examplefiles/intro.ik +24 -0
- data/vendor/pygments-main/tests/examplefiles/ints.php +10 -0
- data/vendor/pygments-main/tests/examplefiles/intsyn.fun +675 -0
- data/vendor/pygments-main/tests/examplefiles/intsyn.sig +286 -0
- data/vendor/pygments-main/tests/examplefiles/irb_heredoc +8 -0
- data/vendor/pygments-main/tests/examplefiles/irc.lsp +214 -0
- data/vendor/pygments-main/tests/examplefiles/java.properties +16 -0
- data/vendor/pygments-main/tests/examplefiles/jbst_example1.jbst +28 -0
- data/vendor/pygments-main/tests/examplefiles/jbst_example2.jbst +45 -0
- data/vendor/pygments-main/tests/examplefiles/jinjadesignerdoc.rst +713 -0
- data/vendor/pygments-main/tests/examplefiles/lighttpd_config.conf +13 -0
- data/vendor/pygments-main/tests/examplefiles/linecontinuation.py +47 -0
- data/vendor/pygments-main/tests/examplefiles/ltmain.sh +2849 -0
- data/vendor/pygments-main/tests/examplefiles/main.cmake +42 -0
- data/vendor/pygments-main/tests/examplefiles/markdown.lsp +679 -0
- data/vendor/pygments-main/tests/examplefiles/matlab_noreturn +3 -0
- data/vendor/pygments-main/tests/examplefiles/matlab_sample +27 -0
- data/vendor/pygments-main/tests/examplefiles/matlabsession_sample.txt +37 -0
- data/vendor/pygments-main/tests/examplefiles/minimal.ns2 +4 -0
- data/vendor/pygments-main/tests/examplefiles/moin_SyntaxReference.txt +340 -0
- data/vendor/pygments-main/tests/examplefiles/multiline_regexes.rb +38 -0
- data/vendor/pygments-main/tests/examplefiles/nasm_aoutso.asm +96 -0
- data/vendor/pygments-main/tests/examplefiles/nasm_objexe.asm +30 -0
- data/vendor/pygments-main/tests/examplefiles/nemerle_sample.n +87 -0
- data/vendor/pygments-main/tests/examplefiles/nginx_nginx.conf +118 -0
- data/vendor/pygments-main/tests/examplefiles/numbers.c +12 -0
- data/vendor/pygments-main/tests/examplefiles/objc_example.m +25 -0
- data/vendor/pygments-main/tests/examplefiles/objc_example2.m +24 -0
- data/vendor/pygments-main/tests/examplefiles/perl_misc +62 -0
- data/vendor/pygments-main/tests/examplefiles/perl_perl5db +998 -0
- data/vendor/pygments-main/tests/examplefiles/perl_regex-delims +120 -0
- data/vendor/pygments-main/tests/examplefiles/perlfunc.1 +856 -0
- data/vendor/pygments-main/tests/examplefiles/phpcomplete.vim +567 -0
- data/vendor/pygments-main/tests/examplefiles/pleac.in.rb +1223 -0
- data/vendor/pygments-main/tests/examplefiles/postgresql_test.txt +47 -0
- data/vendor/pygments-main/tests/examplefiles/pppoe.applescript +10 -0
- data/vendor/pygments-main/tests/examplefiles/psql_session.txt +122 -0
- data/vendor/pygments-main/tests/examplefiles/py3_test.txt +2 -0
- data/vendor/pygments-main/tests/examplefiles/pycon_test.pycon +14 -0
- data/vendor/pygments-main/tests/examplefiles/pytb_test2.pytb +2 -0
- data/vendor/pygments-main/tests/examplefiles/python25-bsd.mak +234 -0
- data/vendor/pygments-main/tests/examplefiles/qsort.prolog +13 -0
- data/vendor/pygments-main/tests/examplefiles/r-console-transcript.Rout +38 -0
- data/vendor/pygments-main/tests/examplefiles/ragel-cpp_rlscan +280 -0
- data/vendor/pygments-main/tests/examplefiles/ragel-cpp_snippet +2 -0
- data/vendor/pygments-main/tests/examplefiles/regex.js +22 -0
- data/vendor/pygments-main/tests/examplefiles/reversi.lsp +427 -0
- data/vendor/pygments-main/tests/examplefiles/ruby_func_def.rb +11 -0
- data/vendor/pygments-main/tests/examplefiles/scilab.sci +30 -0
- data/vendor/pygments-main/tests/examplefiles/sibling.prolog +19 -0
- data/vendor/pygments-main/tests/examplefiles/simple.md +747 -0
- data/vendor/pygments-main/tests/examplefiles/smarty_example.html +209 -0
- data/vendor/pygments-main/tests/examplefiles/source.lgt +343 -0
- data/vendor/pygments-main/tests/examplefiles/sources.list +62 -0
- data/vendor/pygments-main/tests/examplefiles/sphere.pov +18 -0
- data/vendor/pygments-main/tests/examplefiles/sqlite3.sqlite3-console +27 -0
- data/vendor/pygments-main/tests/examplefiles/squid.conf +30 -0
- data/vendor/pygments-main/tests/examplefiles/string.jl +1031 -0
- data/vendor/pygments-main/tests/examplefiles/string_delimiters.d +21 -0
- data/vendor/pygments-main/tests/examplefiles/stripheredoc.sh +3 -0
- data/vendor/pygments-main/tests/examplefiles/test.R +119 -0
- data/vendor/pygments-main/tests/examplefiles/test.adb +211 -0
- data/vendor/pygments-main/tests/examplefiles/test.asy +131 -0
- data/vendor/pygments-main/tests/examplefiles/test.awk +121 -0
- data/vendor/pygments-main/tests/examplefiles/test.bas +29 -0
- data/vendor/pygments-main/tests/examplefiles/test.bmx +145 -0
- data/vendor/pygments-main/tests/examplefiles/test.boo +39 -0
- data/vendor/pygments-main/tests/examplefiles/test.bro +250 -0
- data/vendor/pygments-main/tests/examplefiles/test.cs +374 -0
- data/vendor/pygments-main/tests/examplefiles/test.css +54 -0
- data/vendor/pygments-main/tests/examplefiles/test.d +135 -0
- data/vendor/pygments-main/tests/examplefiles/test.dart +23 -0
- data/vendor/pygments-main/tests/examplefiles/test.dtd +89 -0
- data/vendor/pygments-main/tests/examplefiles/test.ec +605 -0
- data/vendor/pygments-main/tests/examplefiles/test.ecl +58 -0
- data/vendor/pygments-main/tests/examplefiles/test.eh +315 -0
- data/vendor/pygments-main/tests/examplefiles/test.erl +169 -0
- data/vendor/pygments-main/tests/examplefiles/test.evoque +33 -0
- data/vendor/pygments-main/tests/examplefiles/test.fan +818 -0
- data/vendor/pygments-main/tests/examplefiles/test.flx +57 -0
- data/vendor/pygments-main/tests/examplefiles/test.gdc +13 -0
- data/vendor/pygments-main/tests/examplefiles/test.groovy +97 -0
- data/vendor/pygments-main/tests/examplefiles/test.html +339 -0
- data/vendor/pygments-main/tests/examplefiles/test.ini +10 -0
- data/vendor/pygments-main/tests/examplefiles/test.java +653 -0
- data/vendor/pygments-main/tests/examplefiles/test.jsp +24 -0
- data/vendor/pygments-main/tests/examplefiles/test.maql +45 -0
- data/vendor/pygments-main/tests/examplefiles/test.mod +374 -0
- data/vendor/pygments-main/tests/examplefiles/test.moo +51 -0
- data/vendor/pygments-main/tests/examplefiles/test.myt +166 -0
- data/vendor/pygments-main/tests/examplefiles/test.nim +93 -0
- data/vendor/pygments-main/tests/examplefiles/test.pas +743 -0
- data/vendor/pygments-main/tests/examplefiles/test.php +505 -0
- data/vendor/pygments-main/tests/examplefiles/test.plot +333 -0
- data/vendor/pygments-main/tests/examplefiles/test.ps1 +108 -0
- data/vendor/pygments-main/tests/examplefiles/test.pypylog +1839 -0
- data/vendor/pygments-main/tests/examplefiles/test.r3 +94 -0
- data/vendor/pygments-main/tests/examplefiles/test.rb +177 -0
- data/vendor/pygments-main/tests/examplefiles/test.rhtml +43 -0
- data/vendor/pygments-main/tests/examplefiles/test.scaml +8 -0
- data/vendor/pygments-main/tests/examplefiles/test.ssp +12 -0
- data/vendor/pygments-main/tests/examplefiles/test.tcsh +830 -0
- data/vendor/pygments-main/tests/examplefiles/test.vb +407 -0
- data/vendor/pygments-main/tests/examplefiles/test.vhdl +161 -0
- data/vendor/pygments-main/tests/examplefiles/test.xqy +138 -0
- data/vendor/pygments-main/tests/examplefiles/test.xsl +23 -0
- data/vendor/pygments-main/tests/examplefiles/truncated.pytb +15 -0
- data/vendor/pygments-main/tests/examplefiles/type.lisp +1202 -0
- data/vendor/pygments-main/tests/examplefiles/underscore.coffee +603 -0
- data/vendor/pygments-main/tests/examplefiles/unicode.applescript +5 -0
- data/vendor/pygments-main/tests/examplefiles/unicodedoc.py +11 -0
- data/vendor/pygments-main/tests/examplefiles/webkit-transition.css +3 -0
- data/vendor/pygments-main/tests/examplefiles/while.pov +13 -0
- data/vendor/pygments-main/tests/examplefiles/wiki.factor +384 -0
- data/vendor/pygments-main/tests/examplefiles/xml_example +1897 -0
- data/vendor/pygments-main/tests/examplefiles/zmlrpc.f90 +798 -0
- data/vendor/pygments-main/tests/old_run.py +138 -0
- data/vendor/pygments-main/tests/run.py +48 -0
- data/vendor/pygments-main/tests/support.py +15 -0
- data/vendor/pygments-main/tests/test_basic_api.py +294 -0
- data/vendor/pygments-main/tests/test_clexer.py +31 -0
- data/vendor/pygments-main/tests/test_cmdline.py +105 -0
- data/vendor/pygments-main/tests/test_examplefiles.py +97 -0
- data/vendor/pygments-main/tests/test_html_formatter.py +162 -0
- data/vendor/pygments-main/tests/test_latex_formatter.py +55 -0
- data/vendor/pygments-main/tests/test_perllexer.py +137 -0
- data/vendor/pygments-main/tests/test_regexlexer.py +47 -0
- data/vendor/pygments-main/tests/test_token.py +46 -0
- data/vendor/pygments-main/tests/test_using_api.py +40 -0
- data/vendor/pygments-main/tests/test_util.py +116 -0
- data/vendor/simplejson/.gitignore +10 -0
- data/vendor/simplejson/.travis.yml +5 -0
- data/vendor/simplejson/CHANGES.txt +291 -0
- data/vendor/simplejson/LICENSE.txt +19 -0
- data/vendor/simplejson/MANIFEST.in +5 -0
- data/vendor/simplejson/README.rst +19 -0
- data/vendor/simplejson/conf.py +179 -0
- data/vendor/simplejson/index.rst +628 -0
- data/vendor/simplejson/scripts/make_docs.py +18 -0
- data/vendor/simplejson/setup.py +104 -0
- data/vendor/simplejson/simplejson/__init__.py +510 -0
- data/vendor/simplejson/simplejson/_speedups.c +2745 -0
- data/vendor/simplejson/simplejson/decoder.py +425 -0
- data/vendor/simplejson/simplejson/encoder.py +567 -0
- data/vendor/simplejson/simplejson/ordered_dict.py +119 -0
- data/vendor/simplejson/simplejson/scanner.py +77 -0
- data/vendor/simplejson/simplejson/tests/__init__.py +67 -0
- data/vendor/simplejson/simplejson/tests/test_bigint_as_string.py +55 -0
- data/vendor/simplejson/simplejson/tests/test_check_circular.py +30 -0
- data/vendor/simplejson/simplejson/tests/test_decimal.py +66 -0
- data/vendor/simplejson/simplejson/tests/test_decode.py +83 -0
- data/vendor/simplejson/simplejson/tests/test_default.py +9 -0
- data/vendor/simplejson/simplejson/tests/test_dump.py +67 -0
- data/vendor/simplejson/simplejson/tests/test_encode_basestring_ascii.py +46 -0
- data/vendor/simplejson/simplejson/tests/test_encode_for_html.py +32 -0
- data/vendor/simplejson/simplejson/tests/test_errors.py +34 -0
- data/vendor/simplejson/simplejson/tests/test_fail.py +91 -0
- data/vendor/simplejson/simplejson/tests/test_float.py +19 -0
- data/vendor/simplejson/simplejson/tests/test_indent.py +86 -0
- data/vendor/simplejson/simplejson/tests/test_item_sort_key.py +20 -0
- data/vendor/simplejson/simplejson/tests/test_namedtuple.py +121 -0
- data/vendor/simplejson/simplejson/tests/test_pass1.py +76 -0
- data/vendor/simplejson/simplejson/tests/test_pass2.py +14 -0
- data/vendor/simplejson/simplejson/tests/test_pass3.py +20 -0
- data/vendor/simplejson/simplejson/tests/test_recursion.py +67 -0
- data/vendor/simplejson/simplejson/tests/test_scanstring.py +117 -0
- data/vendor/simplejson/simplejson/tests/test_separators.py +42 -0
- data/vendor/simplejson/simplejson/tests/test_speedups.py +20 -0
- data/vendor/simplejson/simplejson/tests/test_tuple.py +49 -0
- data/vendor/simplejson/simplejson/tests/test_unicode.py +109 -0
- data/vendor/simplejson/simplejson/tool.py +39 -0
- metadata +492 -0
@@ -0,0 +1,115 @@
|
|
1
|
+
Pygments is written and maintained by Georg Brandl <georg@python.org>.
|
2
|
+
|
3
|
+
Major developers are Tim Hatch <tim@timhatch.com> and Armin Ronacher
|
4
|
+
<armin.ronacher@active-4.com>.
|
5
|
+
|
6
|
+
Other contributors, listed alphabetically, are:
|
7
|
+
|
8
|
+
* Sam Aaron -- Ioke lexer
|
9
|
+
* Kumar Appaiah -- Debian control lexer
|
10
|
+
* Ali Afshar -- image formatter
|
11
|
+
* Andreas Amann -- AppleScript lexer
|
12
|
+
* Jeremy Ashkenas -- CoffeeScript lexer
|
13
|
+
* Stefan Matthias Aust -- Smalltalk lexer
|
14
|
+
* Ben Bangert -- Mako lexers
|
15
|
+
* Max Battcher -- Darcs patch lexer
|
16
|
+
* Paul Baumgart, 280 North, Inc. -- Objective-J lexer
|
17
|
+
* Michael Bayer -- Myghty lexers
|
18
|
+
* John Benediktsson -- Factor lexer
|
19
|
+
* Christopher Bertels -- Fancy lexer
|
20
|
+
* Jarrett Billingsley -- MiniD lexer
|
21
|
+
* Adam Blinkinsop -- Haskell, Redcode lexers
|
22
|
+
* Frits van Bommel -- assembler lexers
|
23
|
+
* Pierre Bourdon -- bugfixes
|
24
|
+
* Hiram Chirino -- Scaml and Jade lexers
|
25
|
+
* Leaf Corcoran -- MoonScript lexer
|
26
|
+
* Christopher Creutzig -- MuPAD lexer
|
27
|
+
* Pete Curry -- bugfixes
|
28
|
+
* Owen Durni -- haXe lexer
|
29
|
+
* Nick Efford -- Python 3 lexer
|
30
|
+
* Artem Egorkine -- terminal256 formatter
|
31
|
+
* James H. Fisher -- PostScript lexer
|
32
|
+
* Carlos Galdino -- Elixir and Elixir Console lexers
|
33
|
+
* Naveen Garg -- Autohotkey lexer
|
34
|
+
* Laurent Gautier -- R/S lexer
|
35
|
+
* Alex Gaynor -- PyPy log lexer
|
36
|
+
* Bertrand Goetzmann -- Groovy lexer
|
37
|
+
* Krzysiek Goj -- Scala lexer
|
38
|
+
* Matt Good -- Genshi, Cheetah lexers
|
39
|
+
* Patrick Gotthardt -- PHP namespaces support
|
40
|
+
* Olivier Guibe -- Asymptote lexer
|
41
|
+
* Martin Harriman -- SNOBOL lexer
|
42
|
+
* Matthew Harrison -- SVG formatter
|
43
|
+
* Steven Hazel -- Tcl lexer
|
44
|
+
* Aslak Hellesøy -- Gherkin lexer
|
45
|
+
* Jordi Gutiérrez Hermoso -- Octave lexer
|
46
|
+
* David Hess, Fish Software, Inc. -- Objective-J lexer
|
47
|
+
* Varun Hiremath -- Debian control lexer
|
48
|
+
* Ben Hollis -- Mason lexer
|
49
|
+
* Tim Howard -- BlitzMax lexer
|
50
|
+
* Ivan Inozemtsev -- Fantom lexer
|
51
|
+
* Brian R. Jackson -- Tea lexer
|
52
|
+
* Dennis Kaarsemaker -- sources.list lexer
|
53
|
+
* Igor Kalnitsky -- vhdl lexer
|
54
|
+
* Adam Koprowski -- Opa lexer
|
55
|
+
* Benjamin Kowarsch -- Modula-2 lexer
|
56
|
+
* Marek Kubica -- Scheme lexer
|
57
|
+
* Jochen Kupperschmidt -- Markdown processor
|
58
|
+
* Gerd Kurzbach -- Modelica lexer
|
59
|
+
* Olov Lassus -- Dart lexer
|
60
|
+
* Sylvestre Ledru -- Scilab lexer
|
61
|
+
* Mark Lee -- Vala lexer
|
62
|
+
* Ben Mabey -- Gherkin lexer
|
63
|
+
* Simone Margaritelli -- Hybris lexer
|
64
|
+
* Kirk McDonald -- D lexer
|
65
|
+
* Gordon McGregor -- SystemVerilog lexer
|
66
|
+
* Stephen McKamey -- Duel/JBST lexer
|
67
|
+
* Brian McKenna -- F# lexer
|
68
|
+
* Lukas Meuser -- BBCode formatter, Lua lexer
|
69
|
+
* Hong Minhee -- HTTP lexer
|
70
|
+
* Michael Mior -- Awk lexer
|
71
|
+
* Paulo Moura -- Logtalk lexer
|
72
|
+
* Mher Movsisyan -- DTD lexer
|
73
|
+
* Ana Nelson -- Ragel, ANTLR, R console lexers
|
74
|
+
* Nam T. Nguyen -- Monokai style
|
75
|
+
* Jesper Noehr -- HTML formatter "anchorlinenos"
|
76
|
+
* Mike Nolta -- Julia lexer
|
77
|
+
* Jonas Obrist -- BBCode lexer
|
78
|
+
* David Oliva -- Rebol lexer
|
79
|
+
* Jon Parise -- Protocol buffers lexer
|
80
|
+
* Ronny Pfannschmidt -- BBCode lexer
|
81
|
+
* Benjamin Peterson -- Test suite refactoring
|
82
|
+
* Dominik Picheta -- Nimrod lexer
|
83
|
+
* Clément Prévost -- UrbiScript lexer
|
84
|
+
* Justin Reidy -- MXML lexer
|
85
|
+
* Norman Richards -- JSON lexer
|
86
|
+
* Lubomir Rintel -- GoodData MAQL and CL lexers
|
87
|
+
* Andre Roberge -- Tango style
|
88
|
+
* Konrad Rudolph -- LaTeX formatter enhancements
|
89
|
+
* Mario Ruggier -- Evoque lexers
|
90
|
+
* Stou Sandalski -- NumPy, FORTRAN, tcsh and XSLT lexers
|
91
|
+
* Matteo Sasso -- Common Lisp lexer
|
92
|
+
* Joe Schafer -- Ada lexer
|
93
|
+
* Ken Schutte -- Matlab lexers
|
94
|
+
* Tassilo Schweyer -- Io, MOOCode lexers
|
95
|
+
* Joerg Sieker -- ABAP lexer
|
96
|
+
* Robert Simmons -- Standard ML lexer
|
97
|
+
* Kirill Simonov -- YAML lexer
|
98
|
+
* Steve Spigarelli -- XQuery lexer
|
99
|
+
* Jerome St-Louis -- eC lexer
|
100
|
+
* James Strachan -- Kotlin lexer
|
101
|
+
* Tiberius Teng -- default style overhaul
|
102
|
+
* Jeremy Thurgood -- Erlang, Squid config lexers
|
103
|
+
* Erick Tryzelaar -- Felix lexer
|
104
|
+
* Daniele Varrazzo -- PostgreSQL lexers
|
105
|
+
* Abe Voelker -- OpenEdge ABL lexer
|
106
|
+
* Whitney Young -- ObjectiveC lexer
|
107
|
+
* Matthias Vallentin -- Bro lexer
|
108
|
+
* Nathan Weizenbaum -- Haml and Sass lexers
|
109
|
+
* Dietmar Winkler -- Modelica lexer
|
110
|
+
* Nils Winter -- Smalltalk lexer
|
111
|
+
* Davy Wybiral -- Clojure lexer
|
112
|
+
* Diego Zamboni -- CFengine3 lexer
|
113
|
+
* Alex Zimin -- Nemerle lexer
|
114
|
+
|
115
|
+
Many thanks for all contributions!
|
@@ -0,0 +1,762 @@
|
|
1
|
+
Pygments changelog
|
2
|
+
==================
|
3
|
+
|
4
|
+
Issue numbers refer to the tracker at
|
5
|
+
http://bitbucket.org/birkenfeld/pygments-main/issues.
|
6
|
+
|
7
|
+
Version 1.6
|
8
|
+
-----------
|
9
|
+
(in development)
|
10
|
+
|
11
|
+
- Lexers added:
|
12
|
+
|
13
|
+
* Julia (PR#61)
|
14
|
+
|
15
|
+
- Fix Template Haskell highlighting (PR#63)
|
16
|
+
|
17
|
+
|
18
|
+
Version 1.5
|
19
|
+
-----------
|
20
|
+
(codename Zeitdilatation, released Mar 10, 2012)
|
21
|
+
|
22
|
+
- Lexers added:
|
23
|
+
|
24
|
+
* Awk (#630)
|
25
|
+
* Fancy (#633)
|
26
|
+
* PyPy Log
|
27
|
+
* eC
|
28
|
+
* Nimrod
|
29
|
+
* Nemerle (#667)
|
30
|
+
* F# (#353)
|
31
|
+
* Groovy (#501)
|
32
|
+
* PostgreSQL (#660)
|
33
|
+
* DTD
|
34
|
+
* Gosu (#634)
|
35
|
+
* Octave (PR#22)
|
36
|
+
* Standard ML (PR#14)
|
37
|
+
* CFengine3 (#601)
|
38
|
+
* Opa (PR#37)
|
39
|
+
* HTTP sessions (PR#42)
|
40
|
+
* JSON (PR#31)
|
41
|
+
* SNOBOL (PR#30)
|
42
|
+
* MoonScript (PR#43)
|
43
|
+
* ECL (PR#29)
|
44
|
+
* Urbiscript (PR#17)
|
45
|
+
* OpenEdge ABL (PR#27)
|
46
|
+
* SystemVerilog (PR#35)
|
47
|
+
* Coq (#734)
|
48
|
+
* PowerShell (#654)
|
49
|
+
* Dart (#715)
|
50
|
+
* Fantom (PR#36)
|
51
|
+
* Bro (PR#5)
|
52
|
+
* NewLISP (PR#26)
|
53
|
+
* VHDL (PR#45)
|
54
|
+
* Scilab (#740)
|
55
|
+
* Elixir (PR#57)
|
56
|
+
* Tea (PR#56)
|
57
|
+
* Kotlin (PR#58)
|
58
|
+
|
59
|
+
- Fix Python 3 terminal highlighting with pygmentize (#691).
|
60
|
+
|
61
|
+
- In the LaTeX formatter, escape special &, < and > chars (#648).
|
62
|
+
|
63
|
+
- In the LaTeX formatter, fix display problems for styles with token
|
64
|
+
background colors (#670).
|
65
|
+
|
66
|
+
- Enhancements to the Squid conf lexer (#664).
|
67
|
+
|
68
|
+
- Several fixes to the reStructuredText lexer (#636).
|
69
|
+
|
70
|
+
- Recognize methods in the ObjC lexer (#638).
|
71
|
+
|
72
|
+
- Fix Lua "class" highlighting: it does not have classes (#665).
|
73
|
+
|
74
|
+
- Fix degenerate regex in Scala lexer (#671) and highlighting bugs (#713, 708).
|
75
|
+
|
76
|
+
- Fix number pattern order in Ocaml lexer (#647).
|
77
|
+
|
78
|
+
- Fix generic type highlighting in ActionScript 3 (#666).
|
79
|
+
|
80
|
+
- Fixes to the Clojure lexer (PR#9).
|
81
|
+
|
82
|
+
- Fix degenerate regex in Nemerle lexer (#706).
|
83
|
+
|
84
|
+
- Fix infinite looping in CoffeeScript lexer (#729).
|
85
|
+
|
86
|
+
- Fix crashes and analysis with ObjectiveC lexer (#693, #696).
|
87
|
+
|
88
|
+
- Add some Fortran 2003 keywords.
|
89
|
+
|
90
|
+
- Fix Boo string regexes (#679).
|
91
|
+
|
92
|
+
- Add "rrt" style (#727).
|
93
|
+
|
94
|
+
- Fix infinite looping in Darcs Patch lexer.
|
95
|
+
|
96
|
+
- Lots of misc fixes to character-eating bugs and ordering problems in many
|
97
|
+
different lexers.
|
98
|
+
|
99
|
+
|
100
|
+
Version 1.4
|
101
|
+
-----------
|
102
|
+
(codename Unschärfe, released Jan 03, 2011)
|
103
|
+
|
104
|
+
- Lexers added:
|
105
|
+
|
106
|
+
* Factor (#520)
|
107
|
+
* PostScript (#486)
|
108
|
+
* Verilog (#491)
|
109
|
+
* BlitzMax Basic (#478)
|
110
|
+
* Ioke (#465)
|
111
|
+
* Java properties, split out of the INI lexer (#445)
|
112
|
+
* Scss (#509)
|
113
|
+
* Duel/JBST
|
114
|
+
* XQuery (#617)
|
115
|
+
* Mason (#615)
|
116
|
+
* GoodData (#609)
|
117
|
+
* SSP (#473)
|
118
|
+
* Autohotkey (#417)
|
119
|
+
* Google Protocol Buffers
|
120
|
+
* Hybris (#506)
|
121
|
+
|
122
|
+
- Do not fail in analyse_text methods (#618).
|
123
|
+
|
124
|
+
- Performance improvements in the HTML formatter (#523).
|
125
|
+
|
126
|
+
- With the ``noclasses`` option in the HTML formatter, some styles
|
127
|
+
present in the stylesheet were not added as inline styles.
|
128
|
+
|
129
|
+
- Four fixes to the Lua lexer (#480, #481, #482, #497).
|
130
|
+
|
131
|
+
- More context-sensitive Gherkin lexer with support for more i18n translations.
|
132
|
+
|
133
|
+
- Support new OO keywords in Matlab lexer (#521).
|
134
|
+
|
135
|
+
- Small fix in the CoffeeScript lexer (#519).
|
136
|
+
|
137
|
+
- A bugfix for backslashes in ocaml strings (#499).
|
138
|
+
|
139
|
+
- Fix unicode/raw docstrings in the Python lexer (#489).
|
140
|
+
|
141
|
+
- Allow PIL to work without PIL.pth (#502).
|
142
|
+
|
143
|
+
- Allow seconds as a unit in CSS (#496).
|
144
|
+
|
145
|
+
- Support ``application/javascript`` as a JavaScript mime type (#504).
|
146
|
+
|
147
|
+
- Support `Offload <http://offload.codeplay.com>`_ C++ Extensions as
|
148
|
+
keywords in the C++ lexer (#484).
|
149
|
+
|
150
|
+
- Escape more characters in LaTeX output (#505).
|
151
|
+
|
152
|
+
- Update Haml/Sass lexers to version 3 (#509).
|
153
|
+
|
154
|
+
- Small PHP lexer string escaping fix (#515).
|
155
|
+
|
156
|
+
- Support comments before preprocessor directives, and unsigned/
|
157
|
+
long long literals in C/C++ (#613, #616).
|
158
|
+
|
159
|
+
- Support line continuations in the INI lexer (#494).
|
160
|
+
|
161
|
+
- Fix lexing of Dylan string and char literals (#628).
|
162
|
+
|
163
|
+
- Fix class/procedure name highlighting in VB.NET lexer (#624).
|
164
|
+
|
165
|
+
|
166
|
+
Version 1.3.1
|
167
|
+
-------------
|
168
|
+
(bugfix release, released Mar 05, 2010)
|
169
|
+
|
170
|
+
- The ``pygmentize`` script was missing from the distribution.
|
171
|
+
|
172
|
+
|
173
|
+
Version 1.3
|
174
|
+
-----------
|
175
|
+
(codename Schneeglöckchen, released Mar 01, 2010)
|
176
|
+
|
177
|
+
- Added the ``ensurenl`` lexer option, which can be used to suppress the
|
178
|
+
automatic addition of a newline to the lexer input.
|
179
|
+
|
180
|
+
- Lexers added:
|
181
|
+
|
182
|
+
* Ada
|
183
|
+
* Coldfusion
|
184
|
+
* Modula-2
|
185
|
+
* haXe
|
186
|
+
* R console
|
187
|
+
* Objective-J
|
188
|
+
* Haml and Sass
|
189
|
+
* CoffeeScript
|
190
|
+
|
191
|
+
- Enhanced reStructuredText highlighting.
|
192
|
+
|
193
|
+
- Added support for PHP 5.3 namespaces in the PHP lexer.
|
194
|
+
|
195
|
+
- Added a bash completion script for `pygmentize`, to the external/
|
196
|
+
directory (#466).
|
197
|
+
|
198
|
+
- Fixed a bug in `do_insertions()` used for multi-lexer languages.
|
199
|
+
|
200
|
+
- Fixed a Ruby regex highlighting bug (#476).
|
201
|
+
|
202
|
+
- Fixed regex highlighting bugs in Perl lexer (#258).
|
203
|
+
|
204
|
+
- Add small enhancements to the C lexer (#467) and Bash lexer (#469).
|
205
|
+
|
206
|
+
- Small fixes for the Tcl, Debian control file, Nginx config,
|
207
|
+
Smalltalk, Objective-C, Clojure, Lua lexers.
|
208
|
+
|
209
|
+
- Gherkin lexer: Fixed single apostrophe bug and added new i18n keywords.
|
210
|
+
|
211
|
+
|
212
|
+
Version 1.2.2
|
213
|
+
-------------
|
214
|
+
(bugfix release, released Jan 02, 2010)
|
215
|
+
|
216
|
+
* Removed a backwards incompatibility in the LaTeX formatter that caused
|
217
|
+
Sphinx to produce invalid commands when writing LaTeX output (#463).
|
218
|
+
|
219
|
+
* Fixed a forever-backtracking regex in the BashLexer (#462).
|
220
|
+
|
221
|
+
|
222
|
+
Version 1.2.1
|
223
|
+
-------------
|
224
|
+
(bugfix release, released Jan 02, 2010)
|
225
|
+
|
226
|
+
* Fixed mishandling of an ellipsis in place of the frames in a Python
|
227
|
+
console traceback, resulting in clobbered output.
|
228
|
+
|
229
|
+
|
230
|
+
Version 1.2
|
231
|
+
-----------
|
232
|
+
(codename Neujahr, released Jan 01, 2010)
|
233
|
+
|
234
|
+
- Dropped Python 2.3 compatibility.
|
235
|
+
|
236
|
+
- Lexers added:
|
237
|
+
|
238
|
+
* Asymptote
|
239
|
+
* Go
|
240
|
+
* Gherkin (Cucumber)
|
241
|
+
* CMake
|
242
|
+
* Ooc
|
243
|
+
* Coldfusion
|
244
|
+
* haXe
|
245
|
+
* R console
|
246
|
+
|
247
|
+
- Added options for rendering LaTeX in source code comments in the
|
248
|
+
LaTeX formatter (#461).
|
249
|
+
|
250
|
+
- Updated the Logtalk lexer.
|
251
|
+
|
252
|
+
- Added `line_number_start` option to image formatter (#456).
|
253
|
+
|
254
|
+
- Added `hl_lines` and `hl_color` options to image formatter (#457).
|
255
|
+
|
256
|
+
- Fixed the HtmlFormatter's handling of noclasses=True to not output any
|
257
|
+
classes (#427).
|
258
|
+
|
259
|
+
- Added the Monokai style (#453).
|
260
|
+
|
261
|
+
- Fixed LLVM lexer identifier syntax and added new keywords (#442).
|
262
|
+
|
263
|
+
- Fixed the PythonTracebackLexer to handle non-traceback data in header or
|
264
|
+
trailer, and support more partial tracebacks that start on line 2 (#437).
|
265
|
+
|
266
|
+
- Fixed the CLexer to not highlight ternary statements as labels.
|
267
|
+
|
268
|
+
- Fixed lexing of some Ruby quoting peculiarities (#460).
|
269
|
+
|
270
|
+
- A few ASM lexer fixes (#450).
|
271
|
+
|
272
|
+
|
273
|
+
Version 1.1.1
|
274
|
+
-------------
|
275
|
+
(bugfix release, released Sep 15, 2009)
|
276
|
+
|
277
|
+
- Fixed the BBCode lexer (#435).
|
278
|
+
|
279
|
+
- Added support for new Jinja2 keywords.
|
280
|
+
|
281
|
+
- Fixed test suite failures.
|
282
|
+
|
283
|
+
- Added Gentoo-specific suffixes to Bash lexer.
|
284
|
+
|
285
|
+
|
286
|
+
Version 1.1
|
287
|
+
-----------
|
288
|
+
(codename Brillouin, released Sep 11, 2009)
|
289
|
+
|
290
|
+
- Ported Pygments to Python 3. This needed a few changes in the way
|
291
|
+
encodings are handled; they may affect corner cases when used with
|
292
|
+
Python 2 as well.
|
293
|
+
|
294
|
+
- Lexers added:
|
295
|
+
|
296
|
+
* Antlr/Ragel, thanks to Ana Nelson
|
297
|
+
* (Ba)sh shell
|
298
|
+
* Erlang shell
|
299
|
+
* GLSL
|
300
|
+
* Prolog
|
301
|
+
* Evoque
|
302
|
+
* Modelica
|
303
|
+
* Rebol
|
304
|
+
* MXML
|
305
|
+
* Cython
|
306
|
+
* ABAP
|
307
|
+
* ASP.net (VB/C#)
|
308
|
+
* Vala
|
309
|
+
* Newspeak
|
310
|
+
|
311
|
+
- Fixed the LaTeX formatter's output so that output generated for one style
|
312
|
+
can be used with the style definitions of another (#384).
|
313
|
+
|
314
|
+
- Added "anchorlinenos" and "noclobber_cssfile" (#396) options to HTML
|
315
|
+
formatter.
|
316
|
+
|
317
|
+
- Support multiline strings in Lua lexer.
|
318
|
+
|
319
|
+
- Rewrite of the JavaScript lexer by Pumbaa80 to better support regular
|
320
|
+
expression literals (#403).
|
321
|
+
|
322
|
+
- When pygmentize is asked to highlight a file for which multiple lexers
|
323
|
+
match the filename, use the analyse_text guessing engine to determine the
|
324
|
+
winner (#355).
|
325
|
+
|
326
|
+
- Fixed minor bugs in the JavaScript lexer (#383), the Matlab lexer (#378),
|
327
|
+
the Scala lexer (#392), the INI lexer (#391), the Clojure lexer (#387)
|
328
|
+
and the AS3 lexer (#389).
|
329
|
+
|
330
|
+
- Fixed three Perl heredoc lexing bugs (#379, #400, #422).
|
331
|
+
|
332
|
+
- Fixed a bug in the image formatter which misdetected lines (#380).
|
333
|
+
|
334
|
+
- Fixed bugs lexing extended Ruby strings and regexes.
|
335
|
+
|
336
|
+
- Fixed a bug when lexing git diffs.
|
337
|
+
|
338
|
+
- Fixed a bug lexing the empty commit in the PHP lexer (#405).
|
339
|
+
|
340
|
+
- Fixed a bug causing Python numbers to be mishighlighted as floats (#397).
|
341
|
+
|
342
|
+
- Fixed a bug when backslashes are used in odd locations in Python (#395).
|
343
|
+
|
344
|
+
- Fixed various bugs in Matlab and S-Plus lexers, thanks to Winston Chang (#410,
|
345
|
+
#411, #413, #414) and fmarc (#419).
|
346
|
+
|
347
|
+
- Fixed a bug in Haskell single-line comment detection (#426).
|
348
|
+
|
349
|
+
- Added new-style reStructuredText directive for docutils 0.5+ (#428).
|
350
|
+
|
351
|
+
|
352
|
+
Version 1.0
|
353
|
+
-----------
|
354
|
+
(codename Dreiundzwanzig, released Nov 23, 2008)
|
355
|
+
|
356
|
+
- Don't use join(splitlines()) when converting newlines to ``\n``,
|
357
|
+
because that doesn't keep all newlines at the end when the
|
358
|
+
``stripnl`` lexer option is False.
|
359
|
+
|
360
|
+
- Added ``-N`` option to command-line interface to get a lexer name
|
361
|
+
for a given filename.
|
362
|
+
|
363
|
+
- Added Tango style, written by Andre Roberge for the Crunchy project.
|
364
|
+
|
365
|
+
- Added Python3TracebackLexer and ``python3`` option to
|
366
|
+
PythonConsoleLexer.
|
367
|
+
|
368
|
+
- Fixed a few bugs in the Haskell lexer.
|
369
|
+
|
370
|
+
- Fixed PythonTracebackLexer to be able to recognize SyntaxError and
|
371
|
+
KeyboardInterrupt (#360).
|
372
|
+
|
373
|
+
- Provide one formatter class per image format, so that surprises like::
|
374
|
+
|
375
|
+
pygmentize -f gif -o foo.gif foo.py
|
376
|
+
|
377
|
+
creating a PNG file are avoided.
|
378
|
+
|
379
|
+
- Actually use the `font_size` option of the image formatter.
|
380
|
+
|
381
|
+
- Fixed numpy lexer that it doesn't listen for `*.py` any longer.
|
382
|
+
|
383
|
+
- Fixed HTML formatter so that text options can be Unicode
|
384
|
+
strings (#371).
|
385
|
+
|
386
|
+
- Unified Diff lexer supports the "udiff" alias now.
|
387
|
+
|
388
|
+
- Fixed a few issues in Scala lexer (#367).
|
389
|
+
|
390
|
+
- RubyConsoleLexer now supports simple prompt mode (#363).
|
391
|
+
|
392
|
+
- JavascriptLexer is smarter about what constitutes a regex (#356).
|
393
|
+
|
394
|
+
- Add Applescript lexer, thanks to Andreas Amann (#330).
|
395
|
+
|
396
|
+
- Make the codetags more strict about matching words (#368).
|
397
|
+
|
398
|
+
- NginxConfLexer is a little more accurate on mimetypes and
|
399
|
+
variables (#370).
|
400
|
+
|
401
|
+
|
402
|
+
Version 0.11.1
|
403
|
+
--------------
|
404
|
+
(released Aug 24, 2008)
|
405
|
+
|
406
|
+
- Fixed a Jython compatibility issue in pygments.unistring (#358).
|
407
|
+
|
408
|
+
|
409
|
+
Version 0.11
|
410
|
+
------------
|
411
|
+
(codename Straußenei, released Aug 23, 2008)
|
412
|
+
|
413
|
+
Many thanks go to Tim Hatch for writing or integrating most of the bug
|
414
|
+
fixes and new features.
|
415
|
+
|
416
|
+
- Lexers added:
|
417
|
+
|
418
|
+
* Nasm-style assembly language, thanks to delroth
|
419
|
+
* YAML, thanks to Kirill Simonov
|
420
|
+
* ActionScript 3, thanks to Pierre Bourdon
|
421
|
+
* Cheetah/Spitfire templates, thanks to Matt Good
|
422
|
+
* Lighttpd config files
|
423
|
+
* Nginx config files
|
424
|
+
* Gnuplot plotting scripts
|
425
|
+
* Clojure
|
426
|
+
* POV-Ray scene files
|
427
|
+
* Sqlite3 interactive console sessions
|
428
|
+
* Scala source files, thanks to Krzysiek Goj
|
429
|
+
|
430
|
+
- Lexers improved:
|
431
|
+
|
432
|
+
* C lexer highlights standard library functions now and supports C99
|
433
|
+
types.
|
434
|
+
* Bash lexer now correctly highlights heredocs without preceding
|
435
|
+
whitespace.
|
436
|
+
* Vim lexer now highlights hex colors properly and knows a couple
|
437
|
+
more keywords.
|
438
|
+
* Irc logs lexer now handles xchat's default time format (#340) and
|
439
|
+
correctly highlights lines ending in ``>``.
|
440
|
+
* Support more delimiters for perl regular expressions (#258).
|
441
|
+
* ObjectiveC lexer now supports 2.0 features.
|
442
|
+
|
443
|
+
- Added "Visual Studio" style.
|
444
|
+
|
445
|
+
- Updated markdown processor to Markdown 1.7.
|
446
|
+
|
447
|
+
- Support roman/sans/mono style defs and use them in the LaTeX
|
448
|
+
formatter.
|
449
|
+
|
450
|
+
- The RawTokenFormatter is no longer registered to ``*.raw`` and it's
|
451
|
+
documented that tokenization with this lexer may raise exceptions.
|
452
|
+
|
453
|
+
- New option ``hl_lines`` to HTML formatter, to highlight certain
|
454
|
+
lines.
|
455
|
+
|
456
|
+
- New option ``prestyles`` to HTML formatter.
|
457
|
+
|
458
|
+
- New option *-g* to pygmentize, to allow lexer guessing based on
|
459
|
+
filetext (can be slowish, so file extensions are still checked
|
460
|
+
first).
|
461
|
+
|
462
|
+
- ``guess_lexer()`` now makes its decision much faster due to a cache
|
463
|
+
of whether data is xml-like (a check which is used in several
|
464
|
+
versions of ``analyse_text()``. Several lexers also have more
|
465
|
+
accurate ``analyse_text()`` now.
|
466
|
+
|
467
|
+
|
468
|
+
Version 0.10
|
469
|
+
------------
|
470
|
+
(codename Malzeug, released May 06, 2008)
|
471
|
+
|
472
|
+
- Lexers added:
|
473
|
+
|
474
|
+
* Io
|
475
|
+
* Smalltalk
|
476
|
+
* Darcs patches
|
477
|
+
* Tcl
|
478
|
+
* Matlab
|
479
|
+
* Matlab sessions
|
480
|
+
* FORTRAN
|
481
|
+
* XSLT
|
482
|
+
* tcsh
|
483
|
+
* NumPy
|
484
|
+
* Python 3
|
485
|
+
* S, S-plus, R statistics languages
|
486
|
+
* Logtalk
|
487
|
+
|
488
|
+
- In the LatexFormatter, the *commandprefix* option is now by default
|
489
|
+
'PY' instead of 'C', since the latter resulted in several collisions
|
490
|
+
with other packages. Also, the special meaning of the *arg*
|
491
|
+
argument to ``get_style_defs()`` was removed.
|
492
|
+
|
493
|
+
- Added ImageFormatter, to format code as PNG, JPG, GIF or BMP.
|
494
|
+
(Needs the Python Imaging Library.)
|
495
|
+
|
496
|
+
- Support doc comments in the PHP lexer.
|
497
|
+
|
498
|
+
- Handle format specifications in the Perl lexer.
|
499
|
+
|
500
|
+
- Fix comment handling in the Batch lexer.
|
501
|
+
|
502
|
+
- Add more file name extensions for the C++, INI and XML lexers.
|
503
|
+
|
504
|
+
- Fixes in the IRC and MuPad lexers.
|
505
|
+
|
506
|
+
- Fix function and interface name highlighting in the Java lexer.
|
507
|
+
|
508
|
+
- Fix at-rule handling in the CSS lexer.
|
509
|
+
|
510
|
+
- Handle KeyboardInterrupts gracefully in pygmentize.
|
511
|
+
|
512
|
+
- Added BlackWhiteStyle.
|
513
|
+
|
514
|
+
- Bash lexer now correctly highlights math, does not require
|
515
|
+
whitespace after semicolons, and correctly highlights boolean
|
516
|
+
operators.
|
517
|
+
|
518
|
+
- Makefile lexer is now capable of handling BSD and GNU make syntax.
|
519
|
+
|
520
|
+
|
521
|
+
Version 0.9
|
522
|
+
-----------
|
523
|
+
(codename Herbstzeitlose, released Oct 14, 2007)
|
524
|
+
|
525
|
+
- Lexers added:
|
526
|
+
|
527
|
+
* Erlang
|
528
|
+
* ActionScript
|
529
|
+
* Literate Haskell
|
530
|
+
* Common Lisp
|
531
|
+
* Various assembly languages
|
532
|
+
* Gettext catalogs
|
533
|
+
* Squid configuration
|
534
|
+
* Debian control files
|
535
|
+
* MySQL-style SQL
|
536
|
+
* MOOCode
|
537
|
+
|
538
|
+
- Lexers improved:
|
539
|
+
|
540
|
+
* Greatly improved the Haskell and OCaml lexers.
|
541
|
+
* Improved the Bash lexer's handling of nested constructs.
|
542
|
+
* The C# and Java lexers exhibited abysmal performance with some
|
543
|
+
input code; this should now be fixed.
|
544
|
+
* The IRC logs lexer is now able to colorize weechat logs too.
|
545
|
+
* The Lua lexer now recognizes multi-line comments.
|
546
|
+
* Fixed bugs in the D and MiniD lexer.
|
547
|
+
|
548
|
+
- The encoding handling of the command line mode (pygmentize) was
|
549
|
+
enhanced. You shouldn't get UnicodeErrors from it anymore if you
|
550
|
+
don't give an encoding option.
|
551
|
+
|
552
|
+
- Added a ``-P`` option to the command line mode which can be used to
|
553
|
+
give options whose values contain commas or equals signs.
|
554
|
+
|
555
|
+
- Added 256-color terminal formatter.
|
556
|
+
|
557
|
+
- Added an experimental SVG formatter.
|
558
|
+
|
559
|
+
- Added the ``lineanchors`` option to the HTML formatter, thanks to
|
560
|
+
Ian Charnas for the idea.
|
561
|
+
|
562
|
+
- Gave the line numbers table a CSS class in the HTML formatter.
|
563
|
+
|
564
|
+
- Added a Vim 7-like style.
|
565
|
+
|
566
|
+
|
567
|
+
Version 0.8.1
|
568
|
+
-------------
|
569
|
+
(released Jun 27, 2007)
|
570
|
+
|
571
|
+
- Fixed POD highlighting in the Ruby lexer.
|
572
|
+
|
573
|
+
- Fixed Unicode class and namespace name highlighting in the C# lexer.
|
574
|
+
|
575
|
+
- Fixed Unicode string prefix highlighting in the Python lexer.
|
576
|
+
|
577
|
+
- Fixed a bug in the D and MiniD lexers.
|
578
|
+
|
579
|
+
- Fixed the included MoinMoin parser.
|
580
|
+
|
581
|
+
|
582
|
+
Version 0.8
|
583
|
+
-----------
|
584
|
+
(codename Maikäfer, released May 30, 2007)
|
585
|
+
|
586
|
+
- Lexers added:
|
587
|
+
|
588
|
+
* Haskell, thanks to Adam Blinkinsop
|
589
|
+
* Redcode, thanks to Adam Blinkinsop
|
590
|
+
* D, thanks to Kirk McDonald
|
591
|
+
* MuPad, thanks to Christopher Creutzig
|
592
|
+
* MiniD, thanks to Jarrett Billingsley
|
593
|
+
* Vim Script, by Tim Hatch
|
594
|
+
|
595
|
+
- The HTML formatter now has a second line-numbers mode in which it
|
596
|
+
will just integrate the numbers in the same ``<pre>`` tag as the
|
597
|
+
code.
|
598
|
+
|
599
|
+
- The `CSharpLexer` now is Unicode-aware, which means that it has an
|
600
|
+
option that can be set so that it correctly lexes Unicode
|
601
|
+
identifiers allowed by the C# specs.
|
602
|
+
|
603
|
+
- Added a `RaiseOnErrorTokenFilter` that raises an exception when the
|
604
|
+
lexer generates an error token, and a `VisibleWhitespaceFilter` that
|
605
|
+
converts whitespace (spaces, tabs, newlines) into visible
|
606
|
+
characters.
|
607
|
+
|
608
|
+
- Fixed the `do_insertions()` helper function to yield correct
|
609
|
+
indices.
|
610
|
+
|
611
|
+
- The ReST lexer now automatically highlights source code blocks in
|
612
|
+
".. sourcecode:: language" and ".. code:: language" directive
|
613
|
+
blocks.
|
614
|
+
|
615
|
+
- Improved the default style (thanks to Tiberius Teng). The old
|
616
|
+
default is still available as the "emacs" style (which was an alias
|
617
|
+
before).
|
618
|
+
|
619
|
+
- The `get_style_defs` method of HTML formatters now uses the
|
620
|
+
`cssclass` option as the default selector if it was given.
|
621
|
+
|
622
|
+
- Improved the ReST and Bash lexers a bit.
|
623
|
+
|
624
|
+
- Fixed a few bugs in the Makefile and Bash lexers, thanks to Tim
|
625
|
+
Hatch.
|
626
|
+
|
627
|
+
- Fixed a bug in the command line code that disallowed ``-O`` options
|
628
|
+
when using the ``-S`` option.
|
629
|
+
|
630
|
+
- Fixed a bug in the `RawTokenFormatter`.
|
631
|
+
|
632
|
+
|
633
|
+
Version 0.7.1
|
634
|
+
-------------
|
635
|
+
(released Feb 15, 2007)
|
636
|
+
|
637
|
+
- Fixed little highlighting bugs in the Python, Java, Scheme and
|
638
|
+
Apache Config lexers.
|
639
|
+
|
640
|
+
- Updated the included manpage.
|
641
|
+
|
642
|
+
- Included a built version of the documentation in the source tarball.
|
643
|
+
|
644
|
+
|
645
|
+
Version 0.7
|
646
|
+
-----------
|
647
|
+
(codename Faschingskrapfn, released Feb 14, 2007)
|
648
|
+
|
649
|
+
- Added a MoinMoin parser that uses Pygments. With it, you get
|
650
|
+
Pygments highlighting in Moin Wiki pages.
|
651
|
+
|
652
|
+
- Changed the exception raised if no suitable lexer, formatter etc. is
|
653
|
+
found in one of the `get_*_by_*` functions to a custom exception,
|
654
|
+
`pygments.util.ClassNotFound`. It is, however, a subclass of
|
655
|
+
`ValueError` in order to retain backwards compatibility.
|
656
|
+
|
657
|
+
- Added a `-H` command line option which can be used to get the
|
658
|
+
docstring of a lexer, formatter or filter.
|
659
|
+
|
660
|
+
- Made the handling of lexers and formatters more consistent. The
|
661
|
+
aliases and filename patterns of formatters are now attributes on
|
662
|
+
them.
|
663
|
+
|
664
|
+
- Added an OCaml lexer, thanks to Adam Blinkinsop.
|
665
|
+
|
666
|
+
- Made the HTML formatter more flexible, and easily subclassable in
|
667
|
+
order to make it easy to implement custom wrappers, e.g. alternate
|
668
|
+
line number markup. See the documentation.
|
669
|
+
|
670
|
+
- Added an `outencoding` option to all formatters, making it possible
|
671
|
+
to override the `encoding` (which is used by lexers and formatters)
|
672
|
+
when using the command line interface. Also, if using the terminal
|
673
|
+
formatter and the output file is a terminal and has an encoding
|
674
|
+
attribute, use it if no encoding is given.
|
675
|
+
|
676
|
+
- Made it possible to just drop style modules into the `styles`
|
677
|
+
subpackage of the Pygments installation.
|
678
|
+
|
679
|
+
- Added a "state" keyword argument to the `using` helper.
|
680
|
+
|
681
|
+
- Added a `commandprefix` option to the `LatexFormatter` which allows
|
682
|
+
to control how the command names are constructed.
|
683
|
+
|
684
|
+
- Added quite a few new lexers, thanks to Tim Hatch:
|
685
|
+
|
686
|
+
* Java Server Pages
|
687
|
+
* Windows batch files
|
688
|
+
* Trac Wiki markup
|
689
|
+
* Python tracebacks
|
690
|
+
* ReStructuredText
|
691
|
+
* Dylan
|
692
|
+
* and the Befunge esoteric programming language (yay!)
|
693
|
+
|
694
|
+
- Added Mako lexers by Ben Bangert.
|
695
|
+
|
696
|
+
- Added "fruity" style, another dark background originally vim-based
|
697
|
+
theme.
|
698
|
+
|
699
|
+
- Added sources.list lexer by Dennis Kaarsemaker.
|
700
|
+
|
701
|
+
- Added token stream filters, and a pygmentize option to use them.
|
702
|
+
|
703
|
+
- Changed behavior of `in` Operator for tokens.
|
704
|
+
|
705
|
+
- Added mimetypes for all lexers.
|
706
|
+
|
707
|
+
- Fixed some problems lexing Python strings.
|
708
|
+
|
709
|
+
- Fixed tickets: #167, #178, #179, #180, #185, #201.
|
710
|
+
|
711
|
+
|
712
|
+
Version 0.6
|
713
|
+
-----------
|
714
|
+
(codename Zimtstern, released Dec 20, 2006)
|
715
|
+
|
716
|
+
- Added option for the HTML formatter to write the CSS to an external
|
717
|
+
file in "full document" mode.
|
718
|
+
|
719
|
+
- Added RTF formatter.
|
720
|
+
|
721
|
+
- Added Bash and Apache configuration lexers (thanks to Tim Hatch).
|
722
|
+
|
723
|
+
- Improved guessing methods for various lexers.
|
724
|
+
|
725
|
+
- Added `@media` support to CSS lexer (thanks to Tim Hatch).
|
726
|
+
|
727
|
+
- Added a Groff lexer (thanks to Tim Hatch).
|
728
|
+
|
729
|
+
- License change to BSD.
|
730
|
+
|
731
|
+
- Added lexers for the Myghty template language.
|
732
|
+
|
733
|
+
- Added a Scheme lexer (thanks to Marek Kubica).
|
734
|
+
|
735
|
+
- Added some functions to iterate over existing lexers, formatters and
|
736
|
+
lexers.
|
737
|
+
|
738
|
+
- The HtmlFormatter's `get_style_defs()` can now take a list as an
|
739
|
+
argument to generate CSS with multiple prefixes.
|
740
|
+
|
741
|
+
- Support for guessing input encoding added.
|
742
|
+
|
743
|
+
- Encoding support added: all processing is now done with Unicode
|
744
|
+
strings, input and output are converted from and optionally to byte
|
745
|
+
strings (see the ``encoding`` option of lexers and formatters).
|
746
|
+
|
747
|
+
- Some improvements in the C(++) lexers handling comments and line
|
748
|
+
continuations.
|
749
|
+
|
750
|
+
|
751
|
+
Version 0.5.1
|
752
|
+
-------------
|
753
|
+
(released Oct 30, 2006)
|
754
|
+
|
755
|
+
- Fixed traceback in ``pygmentize -L`` (thanks to Piotr Ozarowski).
|
756
|
+
|
757
|
+
|
758
|
+
Version 0.5
|
759
|
+
-----------
|
760
|
+
(codename PyKleur, released Oct 30, 2006)
|
761
|
+
|
762
|
+
- Initial public release.
|