From 3128e82e2ef1cfc59482c1a276fbace366be1f8e Mon Sep 17 00:00:00 2001 From: Daniel Gruno Date: Wed, 25 Apr 2012 07:54:47 +0000 Subject: [PATCH] nil in Lua should be a type, not a keyword in highlighting git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330143 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/style/scripts/prettify.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/manual/style/scripts/prettify.js b/docs/manual/style/scripts/prettify.js index 008ec511f7..3c58917721 100644 --- a/docs/manual/style/scripts/prettify.js +++ b/docs/manual/style/scripts/prettify.js @@ -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'], -- 2.50.1