]> granicus.if.org Git - apache/commitdiff
nil in Lua should be a type, not a keyword in highlighting
authorDaniel Gruno <humbedooh@apache.org>
Wed, 25 Apr 2012 07:54:47 +0000 (07:54 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Wed, 25 Apr 2012 07:54:47 +0000 (07:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330143 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/scripts/prettify.js

index 008ec511f7656b4b1651b7b02a598196c0078844..3c58917721be368279c249e879d5125703b0f713 100644 (file)
@@ -1537,9 +1537,10 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[
          // A comment is either a line comment that starts with two dashes, or
          // two dashes preceding a long bracketed block.
          [PR['PR_COMMENT'], /^--(?:\[(=*)\[[\s\S]*?(?:\]\1\]|$)|[^\r\n]*)/],
+         [PR['PR_TYPE'], /^nil/],
          // 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|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/, null],
+         [PR['PR_KEYWORD'], /^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|not|or|repeat|return|then|true|until|while)\b/, null],
          // A number is a hex integer literal, a decimal real literal, or in
          // scientific notation.
          [PR['PR_LITERAL'],