]> granicus.if.org Git - apache/commitdiff
Add 'require' as a keyword for Lua scripts
authorDaniel Gruno <humbedooh@apache.org>
Sun, 1 Jul 2012 15:50:40 +0000 (15:50 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Sun, 1 Jul 2012 15:50:40 +0000 (15:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1355939 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/scripts/prettify.js

index 0cbde7753ebbf2d6738bf89e7cfe1d4bbddfbfe4..1539b5eed87cc2a45541fbc3ce919353af427f59 100644 (file)
@@ -1589,7 +1589,7 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[
          [PR['PR_TYPE'], /^nil|false|true/],
          // A long bracketed block not preceded by -- is a string.
          [PR['PR_STRING'],  /^\[(=*)\[[\s\S]*?(?:\]\1\]|$)/],
-         [PR['PR_KEYWORD'], /^(?:and|break|do|else|elseif|end|for|function|if|in|local|not|or|repeat|return|then|until|while)\b/, null],
+         [PR['PR_KEYWORD'], /^(?:and|break|do|else|elseif|end|for|function|if|in|local|not|or|repeat|require|return|then|until|while)\b/, null],
          // A number is a hex integer literal, a decimal real literal, or in
          // scientific notation.
          [PR['PR_LITERAL'],