Verified Commit 6b2e8eb5 authored by Camil Staps's avatar Camil Staps 🚀

Use up-to-date Cloogle and pygments lexer

parent b62638bd
Subproject commit 09554a89dfcaa41fca3958adcf5bdb2bf3907f10
Subproject commit 4b3be373e1aebdae2cfcdb26eb6ce51c94f11749
......@@ -31,10 +31,9 @@ RUN svn checkout https://svn.cs.ru.nl/repos/SoccerFun/src /opt/clean/lib/SoccerF
&& git clone https://github.com/camilstaps/CleanSnappy /opt/clean/lib/CleanSnappy
# Pygments, for highlighting
RUN apt-get update && apt-get install -y python3.4 python3-pip mercurial
RUN hg clone https://bitbucket.org/camilstaps/pygments-main-3 /opt/pygments \
&& pip3 install -e /opt/pygments
RUN apt-get update \
&& apt-get install -y python3.5 python3-pip \
&& pip3 install pygments pygments-lexer-clean
COPY iconv.sh .
RUN bash iconv.sh && rm iconv.sh
......
......@@ -4,6 +4,7 @@ import sys
import pygments
import pygments.lexers
import pygments.formatters
from pygments_clean import CleanLexer
import traceback
from pygments.token import Literal, Name, Operator
......@@ -111,7 +112,7 @@ try:
inp += l
outp = pygments.highlight(
inp,
pygments.lexers.get_lexer_by_name('clean'),
CleanLexer(),
CloogleHtmlFormatter(
full=False,
linenos=True,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment