From: Daniel Gruno Date: Fri, 27 Apr 2012 07:17:08 +0000 (+0000) Subject: add a boundary check to type highlighting in C X-Git-Tag: 2.5.0-alpha~6980 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10365626899ecf100026e9800fe4c330de522bd5;p=thirdparty%2Fapache%2Fhttpd.git add a boundary check to type highlighting in C git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331260 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/style/scripts/prettify.js b/docs/manual/style/scripts/prettify.js index dd33acf2faf..f7a6a694559 100644 --- a/docs/manual/style/scripts/prettify.js +++ b/docs/manual/style/scripts/prettify.js @@ -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 /**