You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/04/27 09:17:09 UTC

svn commit: r1331260 - /httpd/httpd/trunk/docs/manual/style/scripts/prettify.js

Author: humbedooh
Date: Fri Apr 27 07:17:08 2012
New Revision: 1331260

URL: http://svn.apache.org/viewvc?rev=1331260&view=rev
Log:
add a boundary check to type highlighting in C

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=1331260&r1=1331259&r2=1331260&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/scripts/prettify.js (original)
+++ httpd/httpd/trunk/docs/manual/style/scripts/prettify.js Fri Apr 27 07:17:08 2012
@@ -128,7 +128,7 @@ var prettyPrint;
   var ALL_KEYWORDS = [
       CPP_KEYWORDS, CSHARP_KEYWORDS, JSCRIPT_KEYWORDS, PERL_KEYWORDS +
       PYTHON_KEYWORDS, RUBY_KEYWORDS, SH_KEYWORDS, CONFIG_KEYWORDS];
-  var C_TYPES = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float|char|void|const|static|struct)\d*(_t)?)|[a-z_]+_rec|cmd_parms\b/;
+  var C_TYPES = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float|char|void|const|static|struct)\d*(_t)?\b)|[a-z_]+_rec|cmd_parms\b/;
 
   // token style names.  correspond to css classes
   /**