Menu

#160 Can't render Scheme code

closed-works-for-me
BenBE
5
2012-12-25
2010-04-25
Anonymous
No

GeSHi 1.0.8.4 can't render Scheme code. It appears to have something to do
with GeSHi's disallowed characters in keywords (Scheme keywords can
include pretty much any character, including '?', '/' and '='), but my
PHP skills aren't sufficient for me to figure out exactly what's
wrong.

Here's the warning I'm getting:

Apr 18 10:11:05 drewhess apache2: PHP Warning: preg_replace_callback(): Unknown modifier 'c' in /usr/share/php-geshi/geshi.php on line 3300

Removing all of the Scheme keywords in scheme.php that include "odd"
characters such as '?', '/' and '=' fixes the problem.
page.

Discussion

  • BenBE

    BenBE - 2010-05-01

    Could you provide me a sample code for scheme that is provoking this error? Can't reproduce this one.

    Which GeSHi version are you using (1.0.8.8, i.e. SVN trunk for me)

     
  • BenBE

    BenBE - 2010-05-01
    • milestone: --> Next_Release_(Stable)
    • assigned_to: oracleshinoda --> benbe
    • status: open --> open-works-for-me
     
  • Drew Hess

    Drew Hess - 2010-05-22

    Even the most trivial Scheme program produces the bug, e.g.:

    (define foo 1)

    As I mentioned in the bug details, I'm running GeSHi 1.0.8.4 from Debian unstable.

     
  • BenBE

    BenBE - 2010-05-22
    • status: open-works-for-me --> pending-works-for-me
     
  • BenBE

    BenBE - 2010-05-22

    Well, testing against the Debian Release is only half the work; the other half is looking if current release versions still suffer from this issue. And (1.0.8.8, i.e. current Trunk) doesn't seem to have the bug.

    At least given your example code I can't reproduce it on my test site at
    http://benbe.home.omorphia.de:43815/geshi-misc/profiling/geshi-trunk/contrib/example.php

    And BTW: 1.0.8.6 is latest packaged, 1.0.8.7 is latest released; 1.0.8.8 will follow this weekend. Debian is off by some versions force months.

     
  • BenBE

    BenBE - 2010-05-24
    • status: pending-works-for-me --> closed-works-for-me
     

Log in to post a comment.