]> granicus.if.org Git - apache/commitdiff
add a boundary check to type highlighting in C
authorDaniel Gruno <humbedooh@apache.org>
Fri, 27 Apr 2012 07:17:08 +0000 (07:17 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 27 Apr 2012 07:17:08 +0000 (07:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331260 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/scripts/prettify.js

index dd33acf2faf1b3e1777eb3692ea78b3ef3824cc0..f7a6a694559aeaa6ff7b006791e2a977014ce849 100644 (file)
@@ -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
   /**