httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1330143 - /httpd/httpd/trunk/docs/manual/style/scripts/prettify.js
Date Wed, 25 Apr 2012 07:54:47 GMT
Author: humbedooh
Date: Wed Apr 25 07:54:47 2012
New Revision: 1330143

URL: http://svn.apache.org/viewvc?rev=1330143&view=rev
Log:
nil in Lua should be a type, not a keyword in highlighting

Modified:
    httpd/httpd/trunk/docs/manual/style/scripts/prettify.js

Modified: httpd/httpd/trunk/docs/manual/style/scripts/prettify.js
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/scripts/prettify.js?rev=1330143&r1=1330142&r2=1330143&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/scripts/prettify.js (original)
+++ httpd/httpd/trunk/docs/manual/style/scripts/prettify.js Wed Apr 25 07:54:47 2012
@@ -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'],



Mime
View raw message