Closed wolandscat closed 7 years ago
New syntax must be submitted upstream to the Python project. This is just a ruby wrapper. On Sun, Jun 28, 2015 at 11:22 AM Thomas Beale notifications@github.com wrote:
I would like to add a new syntax definition according to this documentation http://pygments.org/docs/lexerdevelopment/.
I have pygments.rb installed under cygwin, and it is working (asciidoctor uses it).
I should be able to do this, according to the info above:
$ cd pygments-main $ make mapfiles
This fails - here is what I get:
$ make mapfiles (cd pygments/lexers; python _mapping.py) pygments.lexers.agile pygments.lexers.asm pygments.lexers.compiled pygments.lexers.dalvik pygments.lexers.dotnet pygments.lexers.foxpro pygments.lexers.functional pygments.lexers.github pygments.lexers.graph pygments.lexers.hdl pygments.lexers.inferno pygments.lexers.jvm pygments.lexers.math pygments.lexers.other pygments.lexers.parsers pygments.lexers.qbasic pygments.lexers.rdf pygments.lexers.shell pygments.lexers.special pygments.lexers.sql pygments.lexers.templates pygments.lexers.text pygments.lexers.web (cd pygments/formatters; python _mapping.py) Traceback (most recent call last): File "_mapping.py", line 35, in
from pygments.formatters.other import TestcaseFormatter ImportError: cannot import name TestcaseFormatter Makefile:43: recipe for target 'mapfiles' failed make: *\ [mapfiles] Error 1 I have ruby 2.2.2 and pygments.rb-0.6.3.
Any ideas? (Note: I'm not a python or ruby developer).
— Reply to this email directly or view it on GitHub https://github.com/tmm1/pygments.rb/issues/148.
I understand that, but would you expect the build to work or not, i.e. is the pygments.rb gem a completely copy of the important parts of the original project? It seems to be, which is why I asked the question.
This problem is reported at the pygments Bitbucket site.
A new drop of the pygments code into pygments.rb will fix this.
I would like to add a new syntax definition according to this documentation.
I have pygments.rb installed under cygwin, and it is working (asciidoctor uses it).
I should be able to do this, according to the info above:
This fails - here is what I get:
I have ruby 2.2.2 and pygments.rb-0.6.3.
Any ideas? (Note: I'm not a python or ruby developer).