pygments.rb 0.5.4 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +40 -0
- data/README.md +3 -0
- data/lexers +0 -0
- data/lib/pygments/popen.rb +3 -2
- data/lib/pygments/version.rb +1 -1
- data/pygments.rb.gemspec +2 -1
- data/vendor/pygments-main/AUTHORS +20 -1
- data/vendor/pygments-main/CHANGES +55 -3
- data/vendor/pygments-main/LICENSE +1 -1
- data/vendor/pygments-main/MANIFEST.in +1 -1
- data/vendor/pygments-main/Makefile +5 -8
- data/vendor/pygments-main/REVISION +1 -1
- data/vendor/pygments-main/doc/Makefile +153 -0
- data/vendor/pygments-main/doc/_static/favicon.ico +0 -0
- data/vendor/pygments-main/doc/_static/logo_new.png +0 -0
- data/vendor/pygments-main/doc/_static/logo_only.png +0 -0
- data/vendor/pygments-main/doc/_templates/docssidebar.html +3 -0
- data/vendor/pygments-main/doc/_templates/indexsidebar.html +25 -0
- data/vendor/pygments-main/doc/_themes/pygments14/layout.html +98 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/bodybg.png +0 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/docbg.png +0 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/listitem.png +0 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/logo.png +0 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/pocoo.png +0 -0
- data/vendor/pygments-main/doc/_themes/pygments14/static/pygments14.css_t +401 -0
- data/vendor/pygments-main/doc/_themes/pygments14/theme.conf +15 -0
- data/vendor/pygments-main/doc/conf.py +249 -0
- data/vendor/pygments-main/doc/docs/api.rst +316 -0
- data/vendor/pygments-main/doc/docs/authors.rst +4 -0
- data/vendor/pygments-main/doc/docs/changelog.rst +1 -0
- data/vendor/pygments-main/{docs/src/cmdline.txt → doc/docs/cmdline.rst} +9 -11
- data/vendor/pygments-main/{docs/src/filterdevelopment.txt → doc/docs/filterdevelopment.rst} +1 -1
- data/vendor/pygments-main/{docs/src/filters.txt → doc/docs/filters.rst} +4 -5
- data/vendor/pygments-main/{docs/src/formatterdevelopment.txt → doc/docs/formatterdevelopment.rst} +1 -1
- data/vendor/pygments-main/{docs/src/formatters.txt → doc/docs/formatters.rst} +6 -6
- data/vendor/pygments-main/doc/docs/index.rst +66 -0
- data/vendor/pygments-main/{docs/src/integrate.txt → doc/docs/integrate.rst} +3 -7
- data/vendor/pygments-main/{docs/src/java.txt → doc/docs/java.rst} +0 -0
- data/vendor/pygments-main/{docs/src/lexerdevelopment.txt → doc/docs/lexerdevelopment.rst} +13 -14
- data/vendor/pygments-main/{docs/src/lexers.txt → doc/docs/lexers.rst} +7 -5
- data/vendor/pygments-main/{docs/src/moinmoin.txt → doc/docs/moinmoin.rst} +0 -0
- data/vendor/pygments-main/{docs/src/plugins.txt → doc/docs/plugins.rst} +0 -0
- data/vendor/pygments-main/{docs/src/quickstart.txt → doc/docs/quickstart.rst} +22 -19
- data/vendor/pygments-main/{docs/src/rstdirective.txt → doc/docs/rstdirective.rst} +0 -0
- data/vendor/pygments-main/{docs/src/styles.txt → doc/docs/styles.rst} +2 -2
- data/vendor/pygments-main/{docs/src/tokens.txt → doc/docs/tokens.rst} +10 -7
- data/vendor/pygments-main/{docs/src/unicode.txt → doc/docs/unicode.rst} +8 -7
- data/vendor/pygments-main/doc/download.rst +41 -0
- data/vendor/pygments-main/doc/faq.rst +143 -0
- data/vendor/pygments-main/doc/index.rst +53 -0
- data/vendor/pygments-main/doc/languages.rst +151 -0
- data/vendor/pygments-main/doc/make.bat +190 -0
- data/vendor/pygments-main/{docs → doc}/pygmentize.1 +0 -0
- data/vendor/pygments-main/external/autopygmentize +65 -48
- data/vendor/pygments-main/external/markdown-processor.py +15 -15
- data/vendor/pygments-main/external/moin-parser.py +1 -1
- data/vendor/pygments-main/external/rst-directive.py +2 -3
- data/vendor/pygments-main/ez_setup.py +340 -234
- data/vendor/pygments-main/pygments/__init__.py +4 -4
- data/vendor/pygments-main/pygments/cmdline.py +81 -68
- data/vendor/pygments-main/pygments/console.py +1 -1
- data/vendor/pygments-main/pygments/filter.py +1 -1
- data/vendor/pygments-main/pygments/filters/__init__.py +11 -9
- data/vendor/pygments-main/pygments/formatter.py +3 -3
- data/vendor/pygments-main/pygments/formatters/__init__.py +5 -3
- data/vendor/pygments-main/pygments/formatters/_mapping.py +16 -5
- data/vendor/pygments-main/pygments/formatters/bbcode.py +1 -1
- data/vendor/pygments-main/pygments/formatters/html.py +44 -26
- data/vendor/pygments-main/pygments/formatters/img.py +21 -14
- data/vendor/pygments-main/pygments/formatters/latex.py +104 -12
- data/vendor/pygments-main/pygments/formatters/other.py +53 -6
- data/vendor/pygments-main/pygments/formatters/rtf.py +30 -16
- data/vendor/pygments-main/pygments/formatters/svg.py +2 -2
- data/vendor/pygments-main/pygments/formatters/terminal.py +41 -1
- data/vendor/pygments-main/pygments/formatters/terminal256.py +2 -2
- data/vendor/pygments-main/pygments/lexer.py +59 -39
- data/vendor/pygments-main/pygments/lexers/__init__.py +38 -15
- data/vendor/pygments-main/pygments/lexers/_asybuiltins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_clbuiltins.py +15 -15
- data/vendor/pygments-main/pygments/lexers/_cocoabuiltins.py +73 -0
- data/vendor/pygments-main/pygments/lexers/_lassobuiltins.py +11 -1
- data/vendor/pygments-main/pygments/lexers/_luabuiltins.py +14 -8
- data/vendor/pygments-main/pygments/lexers/_mapping.py +81 -30
- data/vendor/pygments-main/pygments/lexers/_openedgebuiltins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_phpbuiltins.py +1067 -95
- data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +7 -7
- data/vendor/pygments-main/pygments/lexers/_robotframeworklexer.py +5 -4
- data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_sourcemodbuiltins.py +12 -7
- data/vendor/pygments-main/pygments/lexers/_stan_builtins.py +112 -18
- data/vendor/pygments-main/pygments/lexers/_vimbuiltins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/agile.py +644 -382
- data/vendor/pygments-main/pygments/lexers/asm.py +66 -29
- data/vendor/pygments-main/pygments/lexers/compiled.py +1643 -174
- data/vendor/pygments-main/pygments/lexers/dalvik.py +27 -6
- data/vendor/pygments-main/pygments/lexers/dotnet.py +45 -33
- data/vendor/pygments-main/pygments/lexers/foxpro.py +3 -3
- data/vendor/pygments-main/pygments/lexers/functional.py +1510 -570
- data/vendor/pygments-main/pygments/lexers/graph.py +81 -0
- data/vendor/pygments-main/pygments/lexers/hdl.py +29 -30
- data/vendor/pygments-main/pygments/lexers/inferno.py +96 -0
- data/vendor/pygments-main/pygments/lexers/jvm.py +622 -207
- data/vendor/pygments-main/pygments/lexers/math.py +438 -70
- data/vendor/pygments-main/pygments/lexers/other.py +885 -171
- data/vendor/pygments-main/pygments/lexers/parsers.py +24 -24
- data/vendor/pygments-main/pygments/lexers/qbasic.py +157 -0
- data/vendor/pygments-main/pygments/lexers/rdf.py +99 -0
- data/vendor/pygments-main/pygments/lexers/shell.py +28 -25
- data/vendor/pygments-main/pygments/lexers/special.py +7 -8
- data/vendor/pygments-main/pygments/lexers/sql.py +56 -23
- data/vendor/pygments-main/pygments/lexers/templates.py +377 -59
- data/vendor/pygments-main/pygments/lexers/text.py +208 -46
- data/vendor/pygments-main/pygments/lexers/web.py +729 -264
- data/vendor/pygments-main/pygments/modeline.py +1 -1
- data/vendor/pygments-main/pygments/plugin.py +1 -1
- data/vendor/pygments-main/pygments/scanner.py +1 -1
- data/vendor/pygments-main/pygments/sphinxext.py +153 -0
- data/vendor/pygments-main/pygments/style.py +3 -2
- data/vendor/pygments-main/pygments/styles/__init__.py +5 -1
- data/vendor/pygments-main/pygments/styles/autumn.py +1 -1
- data/vendor/pygments-main/pygments/styles/borland.py +1 -1
- data/vendor/pygments-main/pygments/styles/bw.py +1 -1
- data/vendor/pygments-main/pygments/styles/colorful.py +1 -1
- data/vendor/pygments-main/pygments/styles/default.py +1 -1
- data/vendor/pygments-main/pygments/styles/emacs.py +1 -1
- data/vendor/pygments-main/pygments/styles/friendly.py +1 -1
- data/vendor/pygments-main/pygments/styles/fruity.py +1 -1
- data/vendor/pygments-main/pygments/styles/igor.py +29 -0
- data/vendor/pygments-main/pygments/styles/manni.py +1 -1
- data/vendor/pygments-main/pygments/styles/monokai.py +4 -4
- data/vendor/pygments-main/pygments/styles/murphy.py +1 -1
- data/vendor/pygments-main/pygments/styles/native.py +1 -1
- data/vendor/pygments-main/pygments/styles/paraiso_dark.py +125 -0
- data/vendor/pygments-main/pygments/styles/paraiso_light.py +125 -0
- data/vendor/pygments-main/pygments/styles/pastie.py +1 -1
- data/vendor/pygments-main/pygments/styles/perldoc.py +1 -1
- data/vendor/pygments-main/pygments/styles/rrt.py +1 -1
- data/vendor/pygments-main/pygments/styles/tango.py +1 -1
- data/vendor/pygments-main/pygments/styles/trac.py +1 -1
- data/vendor/pygments-main/pygments/styles/vim.py +1 -1
- data/vendor/pygments-main/pygments/styles/vs.py +1 -1
- data/vendor/pygments-main/pygments/styles/xcode.py +51 -0
- data/vendor/pygments-main/pygments/token.py +4 -1
- data/vendor/pygments-main/pygments/unistring.py +6 -5
- data/vendor/pygments-main/pygments/util.py +35 -21
- data/vendor/pygments-main/scripts/check_sources.py +28 -44
- data/vendor/pygments-main/scripts/detect_missing_analyse_text.py +5 -4
- data/vendor/pygments-main/scripts/find_codetags.py +27 -19
- data/vendor/pygments-main/scripts/find_error.py +16 -13
- data/vendor/pygments-main/scripts/get_vimkw.py +3 -3
- data/vendor/pygments-main/scripts/vim2pygments.py +9 -7
- data/vendor/pygments-main/setup.py +19 -19
- data/vendor/pygments-main/tests/examplefiles/99_bottles_of_beer.chpl +118 -0
- data/vendor/pygments-main/tests/examplefiles/Error.pmod +38 -0
- data/vendor/pygments-main/tests/examplefiles/FakeFile.pike +360 -0
- data/vendor/pygments-main/tests/examplefiles/{ANTLRv3.g → antlr_ANTLRv3.g} +0 -0
- data/vendor/pygments-main/tests/examplefiles/clojure-weird-keywords.clj +5 -0
- data/vendor/pygments-main/tests/examplefiles/core.cljs +52 -0
- data/vendor/pygments-main/tests/examplefiles/demo.cfm +13 -1
- data/vendor/pygments-main/tests/examplefiles/demo.hbs +12 -0
- data/vendor/pygments-main/tests/examplefiles/ember.handlebars +33 -0
- data/vendor/pygments-main/tests/examplefiles/example.als +217 -0
- data/vendor/pygments-main/tests/examplefiles/example.c +1 -1
- data/vendor/pygments-main/tests/examplefiles/example.chai +6 -0
- data/vendor/pygments-main/tests/examplefiles/example.coffee +27 -0
- data/vendor/pygments-main/tests/examplefiles/example.e +124 -0
- data/vendor/pygments-main/tests/examplefiles/example.f90 +8 -0
- data/vendor/pygments-main/tests/examplefiles/example.feature +16 -0
- data/vendor/pygments-main/tests/examplefiles/example.gd +23 -0
- data/vendor/pygments-main/tests/examplefiles/example.gi +64 -0
- data/vendor/pygments-main/tests/examplefiles/example.groovy +2 -0
- data/vendor/pygments-main/tests/examplefiles/example.hs +27 -0
- data/vendor/pygments-main/tests/examplefiles/example.hx +44 -1
- data/vendor/pygments-main/tests/examplefiles/example.i6t +32 -0
- data/vendor/pygments-main/tests/examplefiles/example.i7x +45 -0
- data/vendor/pygments-main/tests/examplefiles/example.inf +374 -0
- data/vendor/pygments-main/tests/examplefiles/example.j +564 -0
- data/vendor/pygments-main/tests/examplefiles/example.java +16 -0
- data/vendor/pygments-main/tests/examplefiles/example.kal +75 -0
- data/vendor/pygments-main/tests/examplefiles/example.liquid +42 -0
- data/vendor/pygments-main/tests/examplefiles/example.ma +8 -0
- data/vendor/pygments-main/tests/examplefiles/example.mq4 +187 -0
- data/vendor/pygments-main/tests/examplefiles/example.mqh +123 -0
- data/vendor/pygments-main/tests/examplefiles/example.ni +57 -0
- data/vendor/pygments-main/tests/examplefiles/example.nix +80 -0
- data/vendor/pygments-main/tests/examplefiles/example.pp +8 -0
- data/vendor/pygments-main/tests/examplefiles/example.red +257 -0
- data/vendor/pygments-main/tests/examplefiles/example.reds +150 -0
- data/vendor/pygments-main/tests/examplefiles/example.rkt +677 -29
- data/vendor/pygments-main/tests/examplefiles/example.sh +22 -0
- data/vendor/pygments-main/tests/examplefiles/example.slim +31 -0
- data/vendor/pygments-main/tests/examplefiles/example.sls +51 -0
- data/vendor/pygments-main/tests/examplefiles/example.stan +2 -0
- data/vendor/pygments-main/tests/examplefiles/example.todotxt +9 -0
- data/vendor/pygments-main/tests/examplefiles/exampleScript.cfc +241 -0
- data/vendor/pygments-main/tests/examplefiles/exampleTag.cfc +18 -0
- data/vendor/pygments-main/tests/examplefiles/example_elixir.ex +192 -350
- data/vendor/pygments-main/tests/examplefiles/hash_syntax.rb +5 -0
- data/vendor/pygments-main/tests/examplefiles/hello.at +6 -0
- data/vendor/pygments-main/tests/examplefiles/hello.golo +5 -0
- data/vendor/pygments-main/tests/examplefiles/hello.lsl +12 -0
- data/vendor/pygments-main/tests/examplefiles/{File.hy → hybris_File.hy} +0 -0
- data/vendor/pygments-main/tests/examplefiles/{mg_sample.pro → idl_sample.pro} +0 -0
- data/vendor/pygments-main/tests/examplefiles/iex_example +23 -0
- data/vendor/pygments-main/tests/examplefiles/inet_pton6.dg +24 -24
- data/vendor/pygments-main/tests/examplefiles/language.hy +165 -0
- data/vendor/pygments-main/tests/examplefiles/limbo.b +456 -0
- data/vendor/pygments-main/tests/examplefiles/livescript-demo.ls +3 -1
- data/vendor/pygments-main/tests/examplefiles/main.cmake +2 -0
- data/vendor/pygments-main/tests/examplefiles/objc_example.m +163 -16
- data/vendor/pygments-main/tests/examplefiles/{example.p → openedge_example} +0 -0
- data/vendor/pygments-main/tests/examplefiles/pawn_example +25 -0
- data/vendor/pygments-main/tests/examplefiles/qbasic_example +2 -0
- data/vendor/pygments-main/tests/examplefiles/r6rs-comments.scm +23 -0
- data/vendor/pygments-main/tests/examplefiles/{robotframework.txt → robotframework_test.txt} +0 -0
- data/vendor/pygments-main/tests/examplefiles/rql-queries.rql +34 -0
- data/vendor/pygments-main/tests/examplefiles/scope.cirru +43 -0
- data/vendor/pygments-main/tests/examplefiles/sparql.rq +23 -0
- data/vendor/pygments-main/tests/examplefiles/test.R +37 -5
- data/vendor/pygments-main/tests/examplefiles/test.apl +26 -0
- data/vendor/pygments-main/tests/examplefiles/test.cyp +123 -0
- data/vendor/pygments-main/tests/examplefiles/test.idr +93 -0
- data/vendor/pygments-main/tests/examplefiles/test.mask +41 -0
- data/vendor/pygments-main/tests/examplefiles/test.pan +54 -0
- data/vendor/pygments-main/tests/examplefiles/test.php +3 -1
- data/vendor/pygments-main/tests/examplefiles/test.pig +148 -0
- data/vendor/pygments-main/tests/examplefiles/test.pwn +253 -0
- data/vendor/pygments-main/tests/examplefiles/test.r3 +27 -7
- data/vendor/pygments-main/tests/examplefiles/test.rsl +111 -0
- data/vendor/pygments-main/tests/examplefiles/test.swift +65 -0
- data/vendor/pygments-main/tests/examplefiles/test.zep +33 -0
- data/vendor/pygments-main/tests/examplefiles/unicode.go +10 -0
- data/vendor/pygments-main/tests/examplefiles/{test.bas → vbnet_test.bas} +0 -0
- data/vendor/pygments-main/tests/examplefiles/vctreestatus_hg +4 -0
- data/vendor/pygments-main/tests/examplefiles/vimrc +21 -0
- data/vendor/pygments-main/tests/run.py +14 -19
- data/vendor/pygments-main/tests/string_asserts.py +22 -0
- data/vendor/pygments-main/tests/test_basic_api.py +28 -14
- data/vendor/pygments-main/tests/test_cfm.py +46 -0
- data/vendor/pygments-main/tests/test_clexer.py +208 -3
- data/vendor/pygments-main/tests/test_cmdline.py +6 -5
- data/vendor/pygments-main/tests/test_examplefiles.py +30 -19
- data/vendor/pygments-main/tests/test_html_formatter.py +15 -13
- data/vendor/pygments-main/tests/test_latex_formatter.py +4 -2
- data/vendor/pygments-main/tests/test_lexers_other.py +11 -11
- data/vendor/pygments-main/tests/test_objectiveclexer.py +81 -0
- data/vendor/pygments-main/tests/test_perllexer.py +1 -1
- data/vendor/pygments-main/tests/test_qbasiclexer.py +43 -0
- data/vendor/pygments-main/tests/test_regexlexer.py +8 -1
- data/vendor/pygments-main/tests/test_rtf_formatter.py +109 -0
- data/vendor/pygments-main/tests/test_string_asserts.py +39 -0
- data/vendor/pygments-main/tests/test_token.py +3 -3
- data/vendor/pygments-main/tests/test_using_api.py +1 -1
- data/vendor/pygments-main/tests/test_util.py +1 -1
- metadata +138 -51
- data/vendor/pygments-main/docs/generate.py +0 -472
- data/vendor/pygments-main/docs/src/api.txt +0 -270
- data/vendor/pygments-main/docs/src/authors.txt +0 -5
- data/vendor/pygments-main/docs/src/changelog.txt +0 -5
- data/vendor/pygments-main/docs/src/index.txt +0 -69
- data/vendor/pygments-main/docs/src/installation.txt +0 -71
- data/vendor/pygments-main/external/rst-directive-old.py +0 -77
- data/vendor/pygments-main/scripts/reindent.py +0 -291
- data/vendor/pygments-main/tests/examplefiles/import.hs +0 -4
- data/vendor/pygments-main/tests/examplefiles/objc_example2.m +0 -24
- data/vendor/pygments-main/tests/old_run.py +0 -138
@@ -0,0 +1,109 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
"""
|
3
|
+
Pygments RTF formatter tests
|
4
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
5
|
+
|
6
|
+
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
|
7
|
+
:license: BSD, see LICENSE for details.
|
8
|
+
"""
|
9
|
+
|
10
|
+
import unittest
|
11
|
+
from string_asserts import StringTests
|
12
|
+
|
13
|
+
from pygments.util import StringIO
|
14
|
+
from pygments.formatters import RtfFormatter
|
15
|
+
from pygments.lexers.special import TextLexer
|
16
|
+
|
17
|
+
class RtfFormatterTest(StringTests, unittest.TestCase):
|
18
|
+
foot = (r'\par' '\n' r'}')
|
19
|
+
|
20
|
+
def _escape(self, string):
|
21
|
+
return(string.replace("\n", r"\n"))
|
22
|
+
|
23
|
+
def _build_message(self, *args, **kwargs):
|
24
|
+
string = kwargs.get('string', None)
|
25
|
+
t = self._escape(kwargs.get('t', ''))
|
26
|
+
expected = self._escape(kwargs.get('expected', ''))
|
27
|
+
result = self._escape(kwargs.get('result', ''))
|
28
|
+
|
29
|
+
if string is None:
|
30
|
+
string = (u"The expected output of '{t}'\n"
|
31
|
+
u"\t\tShould be '{expected}'\n"
|
32
|
+
u"\t\tActually outputs '{result}'\n"
|
33
|
+
u"\t(WARNING: Partial Output of Result!)")
|
34
|
+
|
35
|
+
end = -(len(self._escape(self.foot)))
|
36
|
+
start = end-len(expected)
|
37
|
+
|
38
|
+
return string.format(t=t,
|
39
|
+
result = result[start:end],
|
40
|
+
expected = expected)
|
41
|
+
|
42
|
+
def format_rtf(self, t):
|
43
|
+
tokensource = list(TextLexer().get_tokens(t))
|
44
|
+
fmt = RtfFormatter()
|
45
|
+
buf = StringIO()
|
46
|
+
fmt.format(tokensource, buf)
|
47
|
+
result = buf.getvalue()
|
48
|
+
buf.close()
|
49
|
+
return result
|
50
|
+
|
51
|
+
def test_rtf_header(self):
|
52
|
+
t = u''
|
53
|
+
result = self.format_rtf(t)
|
54
|
+
expected = r'{\rtf1\ansi\uc0'
|
55
|
+
msg = (u"RTF documents are expected to start with '{expected}'\n"
|
56
|
+
u"\t\tStarts intead with '{result}'\n"
|
57
|
+
u"\t(WARNING: Partial Output of Result!)".format(
|
58
|
+
expected = expected,
|
59
|
+
result = result[:len(expected)]))
|
60
|
+
self.assertStartsWith(result, expected, msg)
|
61
|
+
|
62
|
+
def test_rtf_footer(self):
|
63
|
+
t = u''
|
64
|
+
result = self.format_rtf(t)
|
65
|
+
expected = self.foot
|
66
|
+
msg = (u"RTF documents are expected to end with '{expected}'\n"
|
67
|
+
u"\t\tEnds intead with '{result}'\n"
|
68
|
+
u"\t(WARNING: Partial Output of Result!)".format(
|
69
|
+
expected = self._escape(expected),
|
70
|
+
result = self._escape(result[-len(expected):])))
|
71
|
+
self.assertEndsWith(result, expected, msg)
|
72
|
+
|
73
|
+
def test_ascii_characters(self):
|
74
|
+
t = u'a b c d ~'
|
75
|
+
result = self.format_rtf(t)
|
76
|
+
expected = (r'a b c d ~')
|
77
|
+
if not result.endswith(self.foot):
|
78
|
+
return(unittest.skip('RTF Footer incorrect'))
|
79
|
+
msg = self._build_message(t=t, result=result, expected=expected)
|
80
|
+
self.assertEndsWith(result, expected+self.foot, msg)
|
81
|
+
|
82
|
+
def test_escape_characters(self):
|
83
|
+
t = u'\ {{'
|
84
|
+
result = self.format_rtf(t)
|
85
|
+
expected = (r'\\ \{\{')
|
86
|
+
if not result.endswith(self.foot):
|
87
|
+
return(unittest.skip('RTF Footer incorrect'))
|
88
|
+
msg = self._build_message(t=t, result=result, expected=expected)
|
89
|
+
self.assertEndsWith(result, expected+self.foot, msg)
|
90
|
+
|
91
|
+
def test_single_characters(self):
|
92
|
+
t = u'â € ¤ каждой'
|
93
|
+
result = self.format_rtf(t)
|
94
|
+
expected = (r'{\u226} {\u8364} {\u164} '
|
95
|
+
r'{\u1082}{\u1072}{\u1078}{\u1076}{\u1086}{\u1081}')
|
96
|
+
if not result.endswith(self.foot):
|
97
|
+
return(unittest.skip('RTF Footer incorrect'))
|
98
|
+
msg = self._build_message(t=t, result=result, expected=expected)
|
99
|
+
self.assertEndsWith(result, expected+self.foot, msg)
|
100
|
+
|
101
|
+
def test_double_characters(self):
|
102
|
+
t = u'က 힣 ↕ ↕︎ 鼖'
|
103
|
+
result = self.format_rtf(t)
|
104
|
+
expected = (r'{\u4096} {\u55203} {\u8597} '
|
105
|
+
r'{\u8597}{\u65038} {\u55422}{\u56859}')
|
106
|
+
if not result.endswith(self.foot):
|
107
|
+
return(unittest.skip('RTF Footer incorrect'))
|
108
|
+
msg = self._build_message(t=t, result=result, expected=expected)
|
109
|
+
self.assertEndsWith(result, expected+self.foot, msg)
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
"""
|
3
|
+
Pygments string assert utility tests
|
4
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
5
|
+
|
6
|
+
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
|
7
|
+
:license: BSD, see LICENSE for details.
|
8
|
+
"""
|
9
|
+
|
10
|
+
import unittest
|
11
|
+
from string_asserts import StringTests
|
12
|
+
|
13
|
+
class TestStringTests(StringTests, unittest.TestCase):
|
14
|
+
|
15
|
+
def test_startswith_correct(self):
|
16
|
+
self.assertStartsWith("AAA", "A")
|
17
|
+
|
18
|
+
# @unittest.expectedFailure not supported by nose
|
19
|
+
def test_startswith_incorrect(self):
|
20
|
+
with self.assertRaises(AssertionError):
|
21
|
+
self.assertStartsWith("AAA", "B")
|
22
|
+
|
23
|
+
# @unittest.expectedFailure not supported by nose
|
24
|
+
def test_startswith_short(self):
|
25
|
+
with self.assertRaises(AssertionError):
|
26
|
+
self.assertStartsWith("A", "AA")
|
27
|
+
|
28
|
+
def test_endswith_correct(self):
|
29
|
+
self.assertEndsWith("AAA", "A")
|
30
|
+
|
31
|
+
# @unittest.expectedFailure not supported by nose
|
32
|
+
def test_endswith_incorrect(self):
|
33
|
+
with self.assertRaises(AssertionError):
|
34
|
+
self.assertEndsWith("AAA", "B")
|
35
|
+
|
36
|
+
# @unittest.expectedFailure not supported by nose
|
37
|
+
def test_endswith_short(self):
|
38
|
+
with self.assertRaises(AssertionError):
|
39
|
+
self.assertEndsWith("A", "AA")
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Test suite for the token module
|
4
4
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
5
5
|
|
6
|
-
:copyright: Copyright 2006-
|
6
|
+
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
|
7
7
|
:license: BSD, see LICENSE for details.
|
8
8
|
"""
|
9
9
|
|
@@ -36,11 +36,11 @@ class TokenTest(unittest.TestCase):
|
|
36
36
|
stp = token.STANDARD_TYPES.copy()
|
37
37
|
stp[token.Token] = '---' # Token and Text do conflict, that is okay
|
38
38
|
t = {}
|
39
|
-
for k, v in stp.
|
39
|
+
for k, v in stp.items():
|
40
40
|
t.setdefault(v, []).append(k)
|
41
41
|
if len(t) == len(stp):
|
42
42
|
return # Okay
|
43
43
|
|
44
|
-
for k, v in t.
|
44
|
+
for k, v in t.items():
|
45
45
|
if len(v) > 1:
|
46
46
|
self.fail("%r has more than one key: %r" % (k, v))
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pygments.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Aman Gupta
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: yajl-ruby
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: posix-spawn
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ~>
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ~>
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: rake-compiler
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ~>
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :development
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ~>
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -94,35 +87,52 @@ files:
|
|
94
87
|
- vendor/pygments-main/Makefile
|
95
88
|
- vendor/pygments-main/REVISION
|
96
89
|
- vendor/pygments-main/TODO
|
97
|
-
- vendor/pygments-main/
|
98
|
-
- vendor/pygments-main/
|
99
|
-
- vendor/pygments-main/
|
100
|
-
- vendor/pygments-main/
|
101
|
-
- vendor/pygments-main/
|
102
|
-
- vendor/pygments-main/
|
103
|
-
- vendor/pygments-main/
|
104
|
-
- vendor/pygments-main/
|
105
|
-
- vendor/pygments-main/
|
106
|
-
- vendor/pygments-main/
|
107
|
-
- vendor/pygments-main/
|
108
|
-
- vendor/pygments-main/
|
109
|
-
- vendor/pygments-main/
|
110
|
-
- vendor/pygments-main/
|
111
|
-
- vendor/pygments-main/
|
112
|
-
- vendor/pygments-main/docs/
|
113
|
-
- vendor/pygments-main/docs/
|
114
|
-
- vendor/pygments-main/docs/
|
115
|
-
- vendor/pygments-main/docs/
|
116
|
-
- vendor/pygments-main/docs/
|
117
|
-
- vendor/pygments-main/docs/
|
118
|
-
- vendor/pygments-main/docs/
|
119
|
-
- vendor/pygments-main/docs/
|
90
|
+
- vendor/pygments-main/doc/Makefile
|
91
|
+
- vendor/pygments-main/doc/_static/favicon.ico
|
92
|
+
- vendor/pygments-main/doc/_static/logo_new.png
|
93
|
+
- vendor/pygments-main/doc/_static/logo_only.png
|
94
|
+
- vendor/pygments-main/doc/_templates/docssidebar.html
|
95
|
+
- vendor/pygments-main/doc/_templates/indexsidebar.html
|
96
|
+
- vendor/pygments-main/doc/_themes/pygments14/layout.html
|
97
|
+
- vendor/pygments-main/doc/_themes/pygments14/static/bodybg.png
|
98
|
+
- vendor/pygments-main/doc/_themes/pygments14/static/docbg.png
|
99
|
+
- vendor/pygments-main/doc/_themes/pygments14/static/listitem.png
|
100
|
+
- vendor/pygments-main/doc/_themes/pygments14/static/logo.png
|
101
|
+
- vendor/pygments-main/doc/_themes/pygments14/static/pocoo.png
|
102
|
+
- vendor/pygments-main/doc/_themes/pygments14/static/pygments14.css_t
|
103
|
+
- vendor/pygments-main/doc/_themes/pygments14/theme.conf
|
104
|
+
- vendor/pygments-main/doc/conf.py
|
105
|
+
- vendor/pygments-main/doc/docs/api.rst
|
106
|
+
- vendor/pygments-main/doc/docs/authors.rst
|
107
|
+
- vendor/pygments-main/doc/docs/changelog.rst
|
108
|
+
- vendor/pygments-main/doc/docs/cmdline.rst
|
109
|
+
- vendor/pygments-main/doc/docs/filterdevelopment.rst
|
110
|
+
- vendor/pygments-main/doc/docs/filters.rst
|
111
|
+
- vendor/pygments-main/doc/docs/formatterdevelopment.rst
|
112
|
+
- vendor/pygments-main/doc/docs/formatters.rst
|
113
|
+
- vendor/pygments-main/doc/docs/index.rst
|
114
|
+
- vendor/pygments-main/doc/docs/integrate.rst
|
115
|
+
- vendor/pygments-main/doc/docs/java.rst
|
116
|
+
- vendor/pygments-main/doc/docs/lexerdevelopment.rst
|
117
|
+
- vendor/pygments-main/doc/docs/lexers.rst
|
118
|
+
- vendor/pygments-main/doc/docs/moinmoin.rst
|
119
|
+
- vendor/pygments-main/doc/docs/plugins.rst
|
120
|
+
- vendor/pygments-main/doc/docs/quickstart.rst
|
121
|
+
- vendor/pygments-main/doc/docs/rstdirective.rst
|
122
|
+
- vendor/pygments-main/doc/docs/styles.rst
|
123
|
+
- vendor/pygments-main/doc/docs/tokens.rst
|
124
|
+
- vendor/pygments-main/doc/docs/unicode.rst
|
125
|
+
- vendor/pygments-main/doc/download.rst
|
126
|
+
- vendor/pygments-main/doc/faq.rst
|
127
|
+
- vendor/pygments-main/doc/index.rst
|
128
|
+
- vendor/pygments-main/doc/languages.rst
|
129
|
+
- vendor/pygments-main/doc/make.bat
|
130
|
+
- vendor/pygments-main/doc/pygmentize.1
|
120
131
|
- vendor/pygments-main/external/autopygmentize
|
121
132
|
- vendor/pygments-main/external/lasso-builtins-generator-9.lasso
|
122
133
|
- vendor/pygments-main/external/markdown-processor.py
|
123
134
|
- vendor/pygments-main/external/moin-parser.py
|
124
135
|
- vendor/pygments-main/external/pygments.bashcomp
|
125
|
-
- vendor/pygments-main/external/rst-directive-old.py
|
126
136
|
- vendor/pygments-main/external/rst-directive.py
|
127
137
|
- vendor/pygments-main/ez_setup.py
|
128
138
|
- vendor/pygments-main/pygmentize
|
@@ -147,6 +157,7 @@ files:
|
|
147
157
|
- vendor/pygments-main/pygments/lexers/__init__.py
|
148
158
|
- vendor/pygments-main/pygments/lexers/_asybuiltins.py
|
149
159
|
- vendor/pygments-main/pygments/lexers/_clbuiltins.py
|
160
|
+
- vendor/pygments-main/pygments/lexers/_cocoabuiltins.py
|
150
161
|
- vendor/pygments-main/pygments/lexers/_lassobuiltins.py
|
151
162
|
- vendor/pygments-main/pygments/lexers/_luabuiltins.py
|
152
163
|
- vendor/pygments-main/pygments/lexers/_mapping.py
|
@@ -166,11 +177,15 @@ files:
|
|
166
177
|
- vendor/pygments-main/pygments/lexers/foxpro.py
|
167
178
|
- vendor/pygments-main/pygments/lexers/functional.py
|
168
179
|
- vendor/pygments-main/pygments/lexers/github.py
|
180
|
+
- vendor/pygments-main/pygments/lexers/graph.py
|
169
181
|
- vendor/pygments-main/pygments/lexers/hdl.py
|
182
|
+
- vendor/pygments-main/pygments/lexers/inferno.py
|
170
183
|
- vendor/pygments-main/pygments/lexers/jvm.py
|
171
184
|
- vendor/pygments-main/pygments/lexers/math.py
|
172
185
|
- vendor/pygments-main/pygments/lexers/other.py
|
173
186
|
- vendor/pygments-main/pygments/lexers/parsers.py
|
187
|
+
- vendor/pygments-main/pygments/lexers/qbasic.py
|
188
|
+
- vendor/pygments-main/pygments/lexers/rdf.py
|
174
189
|
- vendor/pygments-main/pygments/lexers/shell.py
|
175
190
|
- vendor/pygments-main/pygments/lexers/special.py
|
176
191
|
- vendor/pygments-main/pygments/lexers/sql.py
|
@@ -180,6 +195,7 @@ files:
|
|
180
195
|
- vendor/pygments-main/pygments/modeline.py
|
181
196
|
- vendor/pygments-main/pygments/plugin.py
|
182
197
|
- vendor/pygments-main/pygments/scanner.py
|
198
|
+
- vendor/pygments-main/pygments/sphinxext.py
|
183
199
|
- vendor/pygments-main/pygments/style.py
|
184
200
|
- vendor/pygments-main/pygments/styles/__init__.py
|
185
201
|
- vendor/pygments-main/pygments/styles/autumn.py
|
@@ -190,10 +206,13 @@ files:
|
|
190
206
|
- vendor/pygments-main/pygments/styles/emacs.py
|
191
207
|
- vendor/pygments-main/pygments/styles/friendly.py
|
192
208
|
- vendor/pygments-main/pygments/styles/fruity.py
|
209
|
+
- vendor/pygments-main/pygments/styles/igor.py
|
193
210
|
- vendor/pygments-main/pygments/styles/manni.py
|
194
211
|
- vendor/pygments-main/pygments/styles/monokai.py
|
195
212
|
- vendor/pygments-main/pygments/styles/murphy.py
|
196
213
|
- vendor/pygments-main/pygments/styles/native.py
|
214
|
+
- vendor/pygments-main/pygments/styles/paraiso_dark.py
|
215
|
+
- vendor/pygments-main/pygments/styles/paraiso_light.py
|
197
216
|
- vendor/pygments-main/pygments/styles/pastie.py
|
198
217
|
- vendor/pygments-main/pygments/styles/perldoc.py
|
199
218
|
- vendor/pygments-main/pygments/styles/rrt.py
|
@@ -201,6 +220,7 @@ files:
|
|
201
220
|
- vendor/pygments-main/pygments/styles/trac.py
|
202
221
|
- vendor/pygments-main/pygments/styles/vim.py
|
203
222
|
- vendor/pygments-main/pygments/styles/vs.py
|
223
|
+
- vendor/pygments-main/pygments/styles/xcode.py
|
204
224
|
- vendor/pygments-main/pygments/token.py
|
205
225
|
- vendor/pygments-main/pygments/unistring.py
|
206
226
|
- vendor/pygments-main/pygments/util.py
|
@@ -211,7 +231,6 @@ files:
|
|
211
231
|
- vendor/pygments-main/scripts/find_error.py
|
212
232
|
- vendor/pygments-main/scripts/get_vimkw.py
|
213
233
|
- vendor/pygments-main/scripts/pylintrc
|
214
|
-
- vendor/pygments-main/scripts/reindent.py
|
215
234
|
- vendor/pygments-main/scripts/vim2pygments.py
|
216
235
|
- vendor/pygments-main/setup.cfg
|
217
236
|
- vendor/pygments-main/setup.py
|
@@ -223,7 +242,7 @@ files:
|
|
223
242
|
- vendor/pygments-main/tests/dtds/HTMLlat1.ent
|
224
243
|
- vendor/pygments-main/tests/dtds/HTMLspec.ent
|
225
244
|
- vendor/pygments-main/tests/dtds/HTMLsym.ent
|
226
|
-
- vendor/pygments-main/tests/examplefiles/
|
245
|
+
- vendor/pygments-main/tests/examplefiles/99_bottles_of_beer.chpl
|
227
246
|
- vendor/pygments-main/tests/examplefiles/AcidStateAdvanced.hs
|
228
247
|
- vendor/pygments-main/tests/examplefiles/AlternatingGroup.mu
|
229
248
|
- vendor/pygments-main/tests/examplefiles/BOM.js
|
@@ -232,8 +251,9 @@ files:
|
|
232
251
|
- vendor/pygments-main/tests/examplefiles/Constants.mo
|
233
252
|
- vendor/pygments-main/tests/examplefiles/DancingSudoku.lhs
|
234
253
|
- vendor/pygments-main/tests/examplefiles/Deflate.fs
|
254
|
+
- vendor/pygments-main/tests/examplefiles/Error.pmod
|
235
255
|
- vendor/pygments-main/tests/examplefiles/Errors.scala
|
236
|
-
- vendor/pygments-main/tests/examplefiles/
|
256
|
+
- vendor/pygments-main/tests/examplefiles/FakeFile.pike
|
237
257
|
- vendor/pygments-main/tests/examplefiles/Get-CommandDefinitionHtml.ps1
|
238
258
|
- vendor/pygments-main/tests/examplefiles/IPDispatchC.nc
|
239
259
|
- vendor/pygments-main/tests/examplefiles/IPDispatchP.nc
|
@@ -246,6 +266,7 @@ files:
|
|
246
266
|
- vendor/pygments-main/tests/examplefiles/Sorting.mod
|
247
267
|
- vendor/pygments-main/tests/examplefiles/Sudoku.lhs
|
248
268
|
- vendor/pygments-main/tests/examplefiles/addressbook.proto
|
269
|
+
- vendor/pygments-main/tests/examplefiles/antlr_ANTLRv3.g
|
249
270
|
- vendor/pygments-main/tests/examplefiles/antlr_throws
|
250
271
|
- vendor/pygments-main/tests/examplefiles/apache2.conf
|
251
272
|
- vendor/pygments-main/tests/examplefiles/as3_test.as
|
@@ -263,53 +284,85 @@ files:
|
|
263
284
|
- vendor/pygments-main/tests/examplefiles/ceval.c
|
264
285
|
- vendor/pygments-main/tests/examplefiles/cheetah_example.html
|
265
286
|
- vendor/pygments-main/tests/examplefiles/classes.dylan
|
287
|
+
- vendor/pygments-main/tests/examplefiles/clojure-weird-keywords.clj
|
266
288
|
- vendor/pygments-main/tests/examplefiles/condensed_ruby.rb
|
267
289
|
- vendor/pygments-main/tests/examplefiles/coq_RelationClasses
|
290
|
+
- vendor/pygments-main/tests/examplefiles/core.cljs
|
268
291
|
- vendor/pygments-main/tests/examplefiles/database.pytb
|
269
292
|
- vendor/pygments-main/tests/examplefiles/de.MoinMoin.po
|
270
293
|
- vendor/pygments-main/tests/examplefiles/demo.ahk
|
271
294
|
- vendor/pygments-main/tests/examplefiles/demo.cfm
|
295
|
+
- vendor/pygments-main/tests/examplefiles/demo.hbs
|
272
296
|
- vendor/pygments-main/tests/examplefiles/django_sample.html+django
|
273
297
|
- vendor/pygments-main/tests/examplefiles/dwarf.cw
|
298
|
+
- vendor/pygments-main/tests/examplefiles/ember.handlebars
|
274
299
|
- vendor/pygments-main/tests/examplefiles/erl_session
|
275
300
|
- vendor/pygments-main/tests/examplefiles/escape_semicolon.clj
|
276
301
|
- vendor/pygments-main/tests/examplefiles/evil_regex.js
|
277
302
|
- vendor/pygments-main/tests/examplefiles/example.Rd
|
303
|
+
- vendor/pygments-main/tests/examplefiles/example.als
|
278
304
|
- vendor/pygments-main/tests/examplefiles/example.bug
|
279
305
|
- vendor/pygments-main/tests/examplefiles/example.c
|
280
306
|
- vendor/pygments-main/tests/examplefiles/example.ceylon
|
307
|
+
- vendor/pygments-main/tests/examplefiles/example.chai
|
281
308
|
- vendor/pygments-main/tests/examplefiles/example.clay
|
282
309
|
- vendor/pygments-main/tests/examplefiles/example.cls
|
283
310
|
- vendor/pygments-main/tests/examplefiles/example.cob
|
311
|
+
- vendor/pygments-main/tests/examplefiles/example.coffee
|
284
312
|
- vendor/pygments-main/tests/examplefiles/example.cpp
|
313
|
+
- vendor/pygments-main/tests/examplefiles/example.e
|
314
|
+
- vendor/pygments-main/tests/examplefiles/example.f90
|
315
|
+
- vendor/pygments-main/tests/examplefiles/example.feature
|
316
|
+
- vendor/pygments-main/tests/examplefiles/example.gd
|
317
|
+
- vendor/pygments-main/tests/examplefiles/example.gi
|
318
|
+
- vendor/pygments-main/tests/examplefiles/example.groovy
|
285
319
|
- vendor/pygments-main/tests/examplefiles/example.gs
|
286
320
|
- vendor/pygments-main/tests/examplefiles/example.gst
|
321
|
+
- vendor/pygments-main/tests/examplefiles/example.hs
|
287
322
|
- vendor/pygments-main/tests/examplefiles/example.hx
|
323
|
+
- vendor/pygments-main/tests/examplefiles/example.i6t
|
324
|
+
- vendor/pygments-main/tests/examplefiles/example.i7x
|
325
|
+
- vendor/pygments-main/tests/examplefiles/example.inf
|
326
|
+
- vendor/pygments-main/tests/examplefiles/example.j
|
288
327
|
- vendor/pygments-main/tests/examplefiles/example.jag
|
328
|
+
- vendor/pygments-main/tests/examplefiles/example.java
|
329
|
+
- vendor/pygments-main/tests/examplefiles/example.kal
|
289
330
|
- vendor/pygments-main/tests/examplefiles/example.kt
|
290
331
|
- vendor/pygments-main/tests/examplefiles/example.lagda
|
332
|
+
- vendor/pygments-main/tests/examplefiles/example.liquid
|
291
333
|
- vendor/pygments-main/tests/examplefiles/example.lua
|
334
|
+
- vendor/pygments-main/tests/examplefiles/example.ma
|
292
335
|
- vendor/pygments-main/tests/examplefiles/example.monkey
|
293
336
|
- vendor/pygments-main/tests/examplefiles/example.moo
|
294
337
|
- vendor/pygments-main/tests/examplefiles/example.moon
|
338
|
+
- vendor/pygments-main/tests/examplefiles/example.mq4
|
339
|
+
- vendor/pygments-main/tests/examplefiles/example.mqh
|
295
340
|
- vendor/pygments-main/tests/examplefiles/example.msc
|
341
|
+
- vendor/pygments-main/tests/examplefiles/example.ni
|
296
342
|
- vendor/pygments-main/tests/examplefiles/example.nim
|
343
|
+
- vendor/pygments-main/tests/examplefiles/example.nix
|
297
344
|
- vendor/pygments-main/tests/examplefiles/example.ns2
|
298
|
-
- vendor/pygments-main/tests/examplefiles/example.p
|
299
345
|
- vendor/pygments-main/tests/examplefiles/example.pas
|
346
|
+
- vendor/pygments-main/tests/examplefiles/example.pp
|
300
347
|
- vendor/pygments-main/tests/examplefiles/example.prg
|
301
348
|
- vendor/pygments-main/tests/examplefiles/example.rb
|
349
|
+
- vendor/pygments-main/tests/examplefiles/example.red
|
350
|
+
- vendor/pygments-main/tests/examplefiles/example.reds
|
302
351
|
- vendor/pygments-main/tests/examplefiles/example.reg
|
303
352
|
- vendor/pygments-main/tests/examplefiles/example.rexx
|
304
353
|
- vendor/pygments-main/tests/examplefiles/example.rhtml
|
305
354
|
- vendor/pygments-main/tests/examplefiles/example.rkt
|
306
355
|
- vendor/pygments-main/tests/examplefiles/example.rpf
|
356
|
+
- vendor/pygments-main/tests/examplefiles/example.sh
|
307
357
|
- vendor/pygments-main/tests/examplefiles/example.sh-session
|
308
358
|
- vendor/pygments-main/tests/examplefiles/example.shell-session
|
359
|
+
- vendor/pygments-main/tests/examplefiles/example.slim
|
360
|
+
- vendor/pygments-main/tests/examplefiles/example.sls
|
309
361
|
- vendor/pygments-main/tests/examplefiles/example.sml
|
310
362
|
- vendor/pygments-main/tests/examplefiles/example.snobol
|
311
363
|
- vendor/pygments-main/tests/examplefiles/example.stan
|
312
364
|
- vendor/pygments-main/tests/examplefiles/example.tea
|
365
|
+
- vendor/pygments-main/tests/examplefiles/example.todotxt
|
313
366
|
- vendor/pygments-main/tests/examplefiles/example.ts
|
314
367
|
- vendor/pygments-main/tests/examplefiles/example.u
|
315
368
|
- vendor/pygments-main/tests/examplefiles/example.weechatlog
|
@@ -318,6 +371,8 @@ files:
|
|
318
371
|
- vendor/pygments-main/tests/examplefiles/example.yaml
|
319
372
|
- vendor/pygments-main/tests/examplefiles/example2.aspx
|
320
373
|
- vendor/pygments-main/tests/examplefiles/example2.msc
|
374
|
+
- vendor/pygments-main/tests/examplefiles/exampleScript.cfc
|
375
|
+
- vendor/pygments-main/tests/examplefiles/exampleTag.cfc
|
321
376
|
- vendor/pygments-main/tests/examplefiles/example_elixir.ex
|
322
377
|
- vendor/pygments-main/tests/examplefiles/example_file.fy
|
323
378
|
- vendor/pygments-main/tests/examplefiles/firefox.mak
|
@@ -334,12 +389,18 @@ files:
|
|
334
389
|
- vendor/pygments-main/tests/examplefiles/glsl.frag
|
335
390
|
- vendor/pygments-main/tests/examplefiles/glsl.vert
|
336
391
|
- vendor/pygments-main/tests/examplefiles/grammar-test.p6
|
392
|
+
- vendor/pygments-main/tests/examplefiles/hash_syntax.rb
|
393
|
+
- vendor/pygments-main/tests/examplefiles/hello.at
|
394
|
+
- vendor/pygments-main/tests/examplefiles/hello.golo
|
395
|
+
- vendor/pygments-main/tests/examplefiles/hello.lsl
|
337
396
|
- vendor/pygments-main/tests/examplefiles/hello.smali
|
338
397
|
- vendor/pygments-main/tests/examplefiles/hello.sp
|
339
398
|
- vendor/pygments-main/tests/examplefiles/html+php_faulty.php
|
340
399
|
- vendor/pygments-main/tests/examplefiles/http_request_example
|
341
400
|
- vendor/pygments-main/tests/examplefiles/http_response_example
|
342
|
-
- vendor/pygments-main/tests/examplefiles/
|
401
|
+
- vendor/pygments-main/tests/examplefiles/hybris_File.hy
|
402
|
+
- vendor/pygments-main/tests/examplefiles/idl_sample.pro
|
403
|
+
- vendor/pygments-main/tests/examplefiles/iex_example
|
343
404
|
- vendor/pygments-main/tests/examplefiles/inet_pton6.dg
|
344
405
|
- vendor/pygments-main/tests/examplefiles/intro.ik
|
345
406
|
- vendor/pygments-main/tests/examplefiles/ints.php
|
@@ -353,7 +414,9 @@ files:
|
|
353
414
|
- vendor/pygments-main/tests/examplefiles/jinjadesignerdoc.rst
|
354
415
|
- vendor/pygments-main/tests/examplefiles/json.lasso
|
355
416
|
- vendor/pygments-main/tests/examplefiles/json.lasso9
|
417
|
+
- vendor/pygments-main/tests/examplefiles/language.hy
|
356
418
|
- vendor/pygments-main/tests/examplefiles/lighttpd_config.conf
|
419
|
+
- vendor/pygments-main/tests/examplefiles/limbo.b
|
357
420
|
- vendor/pygments-main/tests/examplefiles/linecontinuation.py
|
358
421
|
- vendor/pygments-main/tests/examplefiles/livescript-demo.ls
|
359
422
|
- vendor/pygments-main/tests/examplefiles/logos_example.xm
|
@@ -364,7 +427,6 @@ files:
|
|
364
427
|
- vendor/pygments-main/tests/examplefiles/matlab_sample
|
365
428
|
- vendor/pygments-main/tests/examplefiles/matlabsession_sample.txt
|
366
429
|
- vendor/pygments-main/tests/examplefiles/metagrammar.treetop
|
367
|
-
- vendor/pygments-main/tests/examplefiles/mg_sample.pro
|
368
430
|
- vendor/pygments-main/tests/examplefiles/minehunt.qml
|
369
431
|
- vendor/pygments-main/tests/examplefiles/minimal.ns2
|
370
432
|
- vendor/pygments-main/tests/examplefiles/moin_SyntaxReference.txt
|
@@ -376,7 +438,8 @@ files:
|
|
376
438
|
- vendor/pygments-main/tests/examplefiles/nginx_nginx.conf
|
377
439
|
- vendor/pygments-main/tests/examplefiles/numbers.c
|
378
440
|
- vendor/pygments-main/tests/examplefiles/objc_example.m
|
379
|
-
- vendor/pygments-main/tests/examplefiles/
|
441
|
+
- vendor/pygments-main/tests/examplefiles/openedge_example
|
442
|
+
- vendor/pygments-main/tests/examplefiles/pawn_example
|
380
443
|
- vendor/pygments-main/tests/examplefiles/perl_misc
|
381
444
|
- vendor/pygments-main/tests/examplefiles/perl_perl5db
|
382
445
|
- vendor/pygments-main/tests/examplefiles/perl_regex-delims
|
@@ -393,22 +456,27 @@ files:
|
|
393
456
|
- vendor/pygments-main/tests/examplefiles/pytb_test2.pytb
|
394
457
|
- vendor/pygments-main/tests/examplefiles/pytb_test3.pytb
|
395
458
|
- vendor/pygments-main/tests/examplefiles/python25-bsd.mak
|
459
|
+
- vendor/pygments-main/tests/examplefiles/qbasic_example
|
396
460
|
- vendor/pygments-main/tests/examplefiles/qsort.prolog
|
397
461
|
- vendor/pygments-main/tests/examplefiles/r-console-transcript.Rout
|
462
|
+
- vendor/pygments-main/tests/examplefiles/r6rs-comments.scm
|
398
463
|
- vendor/pygments-main/tests/examplefiles/ragel-cpp_rlscan
|
399
464
|
- vendor/pygments-main/tests/examplefiles/ragel-cpp_snippet
|
400
465
|
- vendor/pygments-main/tests/examplefiles/regex.js
|
401
466
|
- vendor/pygments-main/tests/examplefiles/reversi.lsp
|
402
|
-
- vendor/pygments-main/tests/examplefiles/
|
467
|
+
- vendor/pygments-main/tests/examplefiles/robotframework_test.txt
|
468
|
+
- vendor/pygments-main/tests/examplefiles/rql-queries.rql
|
403
469
|
- vendor/pygments-main/tests/examplefiles/ruby_func_def.rb
|
404
470
|
- vendor/pygments-main/tests/examplefiles/rust_example.rs
|
405
471
|
- vendor/pygments-main/tests/examplefiles/scilab.sci
|
472
|
+
- vendor/pygments-main/tests/examplefiles/scope.cirru
|
406
473
|
- vendor/pygments-main/tests/examplefiles/session.dylan-console
|
407
474
|
- vendor/pygments-main/tests/examplefiles/sibling.prolog
|
408
475
|
- vendor/pygments-main/tests/examplefiles/simple.md
|
409
476
|
- vendor/pygments-main/tests/examplefiles/smarty_example.html
|
410
477
|
- vendor/pygments-main/tests/examplefiles/source.lgt
|
411
478
|
- vendor/pygments-main/tests/examplefiles/sources.list
|
479
|
+
- vendor/pygments-main/tests/examplefiles/sparql.rq
|
412
480
|
- vendor/pygments-main/tests/examplefiles/sphere.pov
|
413
481
|
- vendor/pygments-main/tests/examplefiles/sqlite3.sqlite3-console
|
414
482
|
- vendor/pygments-main/tests/examplefiles/squid.conf
|
@@ -420,9 +488,9 @@ files:
|
|
420
488
|
- vendor/pygments-main/tests/examplefiles/test.R
|
421
489
|
- vendor/pygments-main/tests/examplefiles/test.adb
|
422
490
|
- vendor/pygments-main/tests/examplefiles/test.agda
|
491
|
+
- vendor/pygments-main/tests/examplefiles/test.apl
|
423
492
|
- vendor/pygments-main/tests/examplefiles/test.asy
|
424
493
|
- vendor/pygments-main/tests/examplefiles/test.awk
|
425
|
-
- vendor/pygments-main/tests/examplefiles/test.bas
|
426
494
|
- vendor/pygments-main/tests/examplefiles/test.bb
|
427
495
|
- vendor/pygments-main/tests/examplefiles/test.bmx
|
428
496
|
- vendor/pygments-main/tests/examplefiles/test.boo
|
@@ -430,6 +498,7 @@ files:
|
|
430
498
|
- vendor/pygments-main/tests/examplefiles/test.cs
|
431
499
|
- vendor/pygments-main/tests/examplefiles/test.css
|
432
500
|
- vendor/pygments-main/tests/examplefiles/test.cu
|
501
|
+
- vendor/pygments-main/tests/examplefiles/test.cyp
|
433
502
|
- vendor/pygments-main/tests/examplefiles/test.d
|
434
503
|
- vendor/pygments-main/tests/examplefiles/test.dart
|
435
504
|
- vendor/pygments-main/tests/examplefiles/test.dtd
|
@@ -444,56 +513,73 @@ files:
|
|
444
513
|
- vendor/pygments-main/tests/examplefiles/test.gdc
|
445
514
|
- vendor/pygments-main/tests/examplefiles/test.groovy
|
446
515
|
- vendor/pygments-main/tests/examplefiles/test.html
|
516
|
+
- vendor/pygments-main/tests/examplefiles/test.idr
|
447
517
|
- vendor/pygments-main/tests/examplefiles/test.ini
|
448
518
|
- vendor/pygments-main/tests/examplefiles/test.java
|
449
519
|
- vendor/pygments-main/tests/examplefiles/test.jsp
|
450
520
|
- vendor/pygments-main/tests/examplefiles/test.maql
|
521
|
+
- vendor/pygments-main/tests/examplefiles/test.mask
|
451
522
|
- vendor/pygments-main/tests/examplefiles/test.mod
|
452
523
|
- vendor/pygments-main/tests/examplefiles/test.moo
|
453
524
|
- vendor/pygments-main/tests/examplefiles/test.myt
|
454
525
|
- vendor/pygments-main/tests/examplefiles/test.nim
|
455
526
|
- vendor/pygments-main/tests/examplefiles/test.opa
|
456
527
|
- vendor/pygments-main/tests/examplefiles/test.p6
|
528
|
+
- vendor/pygments-main/tests/examplefiles/test.pan
|
457
529
|
- vendor/pygments-main/tests/examplefiles/test.pas
|
458
530
|
- vendor/pygments-main/tests/examplefiles/test.php
|
531
|
+
- vendor/pygments-main/tests/examplefiles/test.pig
|
459
532
|
- vendor/pygments-main/tests/examplefiles/test.plot
|
460
533
|
- vendor/pygments-main/tests/examplefiles/test.ps1
|
534
|
+
- vendor/pygments-main/tests/examplefiles/test.pwn
|
461
535
|
- vendor/pygments-main/tests/examplefiles/test.pypylog
|
462
536
|
- vendor/pygments-main/tests/examplefiles/test.r3
|
463
537
|
- vendor/pygments-main/tests/examplefiles/test.rb
|
464
538
|
- vendor/pygments-main/tests/examplefiles/test.rhtml
|
539
|
+
- vendor/pygments-main/tests/examplefiles/test.rsl
|
465
540
|
- vendor/pygments-main/tests/examplefiles/test.scaml
|
466
541
|
- vendor/pygments-main/tests/examplefiles/test.ssp
|
542
|
+
- vendor/pygments-main/tests/examplefiles/test.swift
|
467
543
|
- vendor/pygments-main/tests/examplefiles/test.tcsh
|
468
544
|
- vendor/pygments-main/tests/examplefiles/test.vb
|
469
545
|
- vendor/pygments-main/tests/examplefiles/test.vhdl
|
470
546
|
- vendor/pygments-main/tests/examplefiles/test.xqy
|
471
547
|
- vendor/pygments-main/tests/examplefiles/test.xsl
|
548
|
+
- vendor/pygments-main/tests/examplefiles/test.zep
|
472
549
|
- vendor/pygments-main/tests/examplefiles/test2.pypylog
|
473
550
|
- vendor/pygments-main/tests/examplefiles/truncated.pytb
|
474
551
|
- vendor/pygments-main/tests/examplefiles/type.lisp
|
475
552
|
- vendor/pygments-main/tests/examplefiles/underscore.coffee
|
476
553
|
- vendor/pygments-main/tests/examplefiles/unicode.applescript
|
554
|
+
- vendor/pygments-main/tests/examplefiles/unicode.go
|
477
555
|
- vendor/pygments-main/tests/examplefiles/unicodedoc.py
|
478
556
|
- vendor/pygments-main/tests/examplefiles/unix-io.lid
|
557
|
+
- vendor/pygments-main/tests/examplefiles/vbnet_test.bas
|
558
|
+
- vendor/pygments-main/tests/examplefiles/vctreestatus_hg
|
559
|
+
- vendor/pygments-main/tests/examplefiles/vimrc
|
479
560
|
- vendor/pygments-main/tests/examplefiles/webkit-transition.css
|
480
561
|
- vendor/pygments-main/tests/examplefiles/while.pov
|
481
562
|
- vendor/pygments-main/tests/examplefiles/wiki.factor
|
482
563
|
- vendor/pygments-main/tests/examplefiles/xml_example
|
483
564
|
- vendor/pygments-main/tests/examplefiles/zmlrpc.f90
|
484
|
-
- vendor/pygments-main/tests/old_run.py
|
485
565
|
- vendor/pygments-main/tests/run.py
|
566
|
+
- vendor/pygments-main/tests/string_asserts.py
|
486
567
|
- vendor/pygments-main/tests/support.py
|
487
568
|
- vendor/pygments-main/tests/support/tags
|
488
569
|
- vendor/pygments-main/tests/test_basic_api.py
|
570
|
+
- vendor/pygments-main/tests/test_cfm.py
|
489
571
|
- vendor/pygments-main/tests/test_clexer.py
|
490
572
|
- vendor/pygments-main/tests/test_cmdline.py
|
491
573
|
- vendor/pygments-main/tests/test_examplefiles.py
|
492
574
|
- vendor/pygments-main/tests/test_html_formatter.py
|
493
575
|
- vendor/pygments-main/tests/test_latex_formatter.py
|
494
576
|
- vendor/pygments-main/tests/test_lexers_other.py
|
577
|
+
- vendor/pygments-main/tests/test_objectiveclexer.py
|
495
578
|
- vendor/pygments-main/tests/test_perllexer.py
|
579
|
+
- vendor/pygments-main/tests/test_qbasiclexer.py
|
496
580
|
- vendor/pygments-main/tests/test_regexlexer.py
|
581
|
+
- vendor/pygments-main/tests/test_rtf_formatter.py
|
582
|
+
- vendor/pygments-main/tests/test_string_asserts.py
|
497
583
|
- vendor/pygments-main/tests/test_token.py
|
498
584
|
- vendor/pygments-main/tests/test_using_api.py
|
499
585
|
- vendor/pygments-main/tests/test_util.py
|
@@ -538,28 +624,29 @@ files:
|
|
538
624
|
- vendor/simplejson/simplejson/tests/test_tuple.py
|
539
625
|
- vendor/simplejson/simplejson/tests/test_unicode.py
|
540
626
|
- vendor/simplejson/simplejson/tool.py
|
541
|
-
homepage:
|
542
|
-
licenses:
|
627
|
+
homepage: https://github.com/tmm1/pygments.rb
|
628
|
+
licenses:
|
629
|
+
- MIT
|
630
|
+
metadata: {}
|
543
631
|
post_install_message:
|
544
632
|
rdoc_options: []
|
545
633
|
require_paths:
|
546
634
|
- lib
|
547
635
|
required_ruby_version: !ruby/object:Gem::Requirement
|
548
|
-
none: false
|
549
636
|
requirements:
|
550
|
-
- -
|
637
|
+
- - '>='
|
551
638
|
- !ruby/object:Gem::Version
|
552
639
|
version: '0'
|
553
640
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
554
|
-
none: false
|
555
641
|
requirements:
|
556
|
-
- -
|
642
|
+
- - '>='
|
557
643
|
- !ruby/object:Gem::Version
|
558
644
|
version: '0'
|
559
645
|
requirements: []
|
560
646
|
rubyforge_project:
|
561
|
-
rubygems_version:
|
647
|
+
rubygems_version: 2.0.3
|
562
648
|
signing_key:
|
563
|
-
specification_version:
|
649
|
+
specification_version: 4
|
564
650
|
summary: pygments wrapper for ruby
|
565
651
|
test_files: []
|
652
|
+
has_rdoc: false
|