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.
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)
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.
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.