From 22d15063067e13757d96ac735c06e93b675c4544 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Thu, 23 Mar 2000 13:12:31 +0000 Subject: Remove attempts at elisp markup, screwy regexps somewhere or php buggy. --- html/elispmarkup.php3 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'html') diff --git a/html/elispmarkup.php3 b/html/elispmarkup.php3 index a18586c9..3a8528f4 100644 --- a/html/elispmarkup.php3 +++ b/html/elispmarkup.php3 @@ -117,15 +117,16 @@ function elisp_markup($filename,$thispage,$title="") { // Anchors for URLs $line = ereg_replace("((http://|mailto:)[-a-zA-Z0-9\.~/_@]+)","\\1",$line); // Font-lock equivalents... - // 1. comments - $line = ereg_replace("(;+.*\n)", - "
\\1
", - $line); + // 1. comments. Strings roughly done: ignore if quote appears after ; +// seems buggy. +// $line = ereg_replace("^([^;]*)(\;+[^\"]+)$", +// "\\1
\\2
", +// $line); // 2. keywords // FIXME: this inserts CR's. - $line = ereg_replace("^\(def(macro|un|var|custom|const|group)", - "(
def\\1
", - $line); +// $line = ereg_replace("^\(def(macro|un|var|custom|const|group)", +// "(
def\\1
", +// $line); // FIXME: add hrefs for keywords, looking up in TAGS file. // FIXME: add line numbers // FIXME: parse strings -- cgit v1.2.3