Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A537ECC41 for ; Sat, 28 Apr 2012 21:20:23 +0000 (UTC) Received: (qmail 84040 invoked by uid 500); 28 Apr 2012 21:20:23 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 83994 invoked by uid 500); 28 Apr 2012 21:20:23 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 83985 invoked by uid 99); 28 Apr 2012 21:20:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Apr 2012 21:20:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Apr 2012 21:20:22 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6E9CF23888EA; Sat, 28 Apr 2012 21:20:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1331836 - /httpd/httpd/trunk/docs/manual/style/scripts/prettify.js Date: Sat, 28 Apr 2012 21:20:02 -0000 To: cvs@httpd.apache.org From: humbedooh@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120428212002.6E9CF23888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: humbedooh Date: Sat Apr 28 21:20:01 2012 New Revision: 1331836 URL: http://svn.apache.org/viewvc?rev=1331836&view=rev Log: Allow the lexer loop to run a little longer. Recognize "else" as a Perl keyword (d'uh) Modified: httpd/httpd/trunk/docs/manual/style/scripts/prettify.js Modified: httpd/httpd/trunk/docs/manual/style/scripts/prettify.js URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/scripts/prettify.js?rev=1331836&r1=1331835&r2=1331836&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/style/scripts/prettify.js (original) +++ httpd/httpd/trunk/docs/manual/style/scripts/prettify.js Sat Apr 28 21:20:01 2012 @@ -111,7 +111,7 @@ var prettyPrint; var JSCRIPT_KEYWORDS = [COMMON_KEYWORDS, "debugger,eval,export,function,get,null,set,undefined,var,with," + "Infinity,NaN"]; - var PERL_KEYWORDS = "caller,delete,die,do,dump,elsif,eval,exit,foreach,for," + + var PERL_KEYWORDS = "caller,delete,die,do,dump,else,elsif,eval,exit,foreach,for," + "goto,if,import,last,local,my,next,no,our,print,package,redo,require," + "sub,undef,unless,until,use,wantarray,while,BEGIN,END"; var PYTHON_KEYWORDS = [FLOW_CONTROL_KEYWORDS, "and,as,assert,class,def,del," + @@ -1140,7 +1140,7 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.? var X = 0; while (spanIndex < nSpans) { X = X + 1; - if (X > 1000) { break; } + if (X > 2500) { break; } var spanStart = spans[spanIndex]; var spanEnd = spans[spanIndex + 2] || sourceLength;