Advertisement
Guest User

Untitled

a guest
Aug 28th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 13.80 KB | None | 0 0
  1. <?php
  2. /*************************************************************************************
  3.  * nginx.php
  4.  * -----
  5.  * Author: Cliff Wells
  6.  * Copyright: (c) 2010 Cliff Wells
  7.  * Release Version: 1.0.8.10
  8.  * Date Started: 2010/08/24
  9.  *
  10.  * nginx config language file for GeSHi.
  11.  *
  12.  *************************************************************************************
  13.  *
  14.  *     This file is part of GeSHi.
  15.  *
  16.  *   GeSHi is free software; you can redistribute it and/or modify
  17.  *   it under the terms of the GNU General Public License as published by
  18.  *   the Free Software Foundation; either version 2 of the License, or
  19.  *   (at your option) any later version.
  20.  *
  21.  *   GeSHi is distributed in the hope that it will be useful,
  22.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  23.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24.  *   GNU General Public License for more details.
  25.  *
  26.  *   You should have received a copy of the GNU General Public License
  27.  *   along with GeSHi; if not, write to the Free Software
  28.  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  29.  *
  30.  ************************************************************************************/
  31.  
  32. $language_data = array('LANG_NAME' => 'nginx',
  33.         'COMMENT_SINGLE' => array(1 => '#'),
  34.         'COMMENT_MULTI' => array(),
  35.         'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  36.         'QUOTEMARKS' => array("'", '"'),
  37.         'ESCAPE_CHAR' => '\\',
  38.         'KEYWORDS' => array(
  39.                 1 => array( // core module
  40.                         'daemon', 'env', 'debug_points', 'error_log',
  41.                         'log_not_found', 'include', 'lock_file',
  42.                         'master_process', 'pid', 'ssl_engine',
  43.                         'timer_resolution', 'user', 'worker_cpu_affinity',
  44.                         'worker_priority', 'worker_processes',
  45.                         'worker_rlimit_core', 'worker_rlimit_nofile',
  46.                         'worker_rlimit_sigpending', 'working_directory',),
  47.                 2 => array( // events module,
  48.                         'events', 'accept_mutex', 'accept_mutex_delay',
  49.                         'debug_connection', 'devpoll_changes',
  50.                         'devpoll_events', 'kqueue_changes', 'kqueue_events',
  51.                         'epoll_events', 'multi_accept', 'rtsig_signo',
  52.                         'rtsig_overflow_events', 'rtsig_overflow_test',
  53.                         'rtsig_overflow_threshold', 'use',
  54.                         'worker_connections',),
  55.                 3 => array( // http module
  56.                         'http', 'alias', 'client_body_in_file_only',
  57.                         'client_body_buffer_size', 'client_body_temp_path',
  58.                         'client_body_timeout', 'client_header_buffer_size',
  59.                         'client_header_timeout', 'client_max_body_size',
  60.                         'default_type', 'error_page', 'internal',
  61.                         'keepalive_timeout', 'keepalive_requests',
  62.                         'large_client_header_buffers', 'limit_except',
  63.                         'limit_rate', 'limit_rate_after', 'listen', 'location',
  64.                         'msie_padding', 'msie_refresh',
  65.                         'optimize_server_names', 'port_in_redirect',
  66.                         'recursive_error_pages', 'root', 'satisfy_any',
  67.                         'send_timeout', 'sendfile', 'server', 'server_name',
  68.                         'server_name_in_redirect',
  69.                         'server_names_hash_max_size',
  70.                         'server_names_hash_bucket_size', 'server_tokens',
  71.                         'tcp_nodelay', 'tcp_nopush', 'try_files', 'types',),
  72.                 4 => array( // upstream module
  73.                         'ip_hash', 'upstream',),
  74.                 5 => array( // access module
  75.                         'deny', 'allow'),
  76.                 6 => array( // auth basic module
  77.                         'auth_basic', 'auth_basic_user_file'),
  78.                 7 => array( // auto index module
  79.                         'autoindex', 'autoindex_exact_size',
  80.                         'autoindex_localtime',),
  81.                 8 => array( // browser module
  82.                         'ancient_browser', 'ancient_browser_value',
  83.                         'modern_browser', 'modern_browser_value',),
  84.                 9 => array( // charset module
  85.                         'charset', 'charset_map', 'override_charset',
  86.                         'source_charset',),
  87.                 10 => array( // empty gif module
  88.                         'empty_gif',),
  89.                 11 => array( // fastcgi module
  90.                         'fastcgi_cache_path', 'fastcgi_cache',
  91.                         'fastcgi_cache_methods', 'fastcgi_cache_min_uses',
  92.                         'fastcgi_cache_use_stale', 'fastcgi_cache_valid',
  93.                         'fastcgi_index', 'fastcgi_hide_header',
  94.                         'fastcgi_ignore_client_abort',
  95.                         'fastcgi_intercept_errors', 'fastcgi_param',
  96.                         'fastcgi_pass', 'fastcgi_pass_header',
  97.                         'fastcgi_read_timeout', 'fastcgi_redirect_errors',
  98.                         'fastcgi_split_path_info', 'fastcgi_store',
  99.                         'fastcgi_store_access', 'fastcgi_buffers',
  100.                         'fastcgi_buffer_size', 'fastcgi_temp_path',),
  101.                 12 => array( // geoip module
  102.                         'geo'),
  103.                 13 => array( // gzip module
  104.                         'gzip', 'gzip_buffers', 'gzip_comp_level',
  105.                         'gzip_disable', 'gzip_http_version', 'gzip_min_length',
  106.                         'gzip_proxied', 'gzip_types', 'gzip_vary',),
  107.                 14 => array( // headers module
  108.                         'add_header', 'expires',),
  109.                 15 => array( // index module
  110.                         'index',),
  111.                 16 => array( // referer module
  112.                         'valid_referers',),
  113.                 17 => array( // limit zone module
  114.                         'limit_zone', 'limit_conn',),
  115.                 18 => array( // log module
  116.                         'access_log', 'log_format', 'log_format_combined',
  117.                         'open_log_file_cache',),
  118.                 19 => array( // map module
  119.                         'map', 'map_hash_max_size', 'map_hash_bucket_size',),
  120.                 20 => array( // memcached module
  121.                         'memcached_pass', 'memcached_connect_timeout',
  122.                         'memcached_read_timeout', 'memcached_send_timeout',
  123.                         'memcached_buffer_size', 'memcached_next_upstream',),
  124.                 21 => array( // proxy module
  125.                         'proxy_buffer_size', 'proxy_buffering',
  126.                         'proxy_buffers', 'proxy_busy_buffers_size',
  127.                         'proxy_cache', 'proxy_cache_path',
  128.                         'proxy_cache_methods', 'proxy_cache_min_uses',
  129.                         'proxy_cache_valid', 'proxy_cache_use_stale',
  130.                         'proxy_connect_timeout',
  131.                         'proxy_headers_hash_bucket_size',
  132.                         'proxy_headers_hash_max_size', 'proxy_hide_header',
  133.                         'proxy_ignore_client_abort', 'proxy_intercept_errors',
  134.                         'proxy_max_temp_file_size', 'proxy_method',
  135.                         'proxy_next_upstream', 'proxy_pass',
  136.                         'proxy_pass_header', 'proxy_pass_request_body',
  137.                         'proxy_pass_request_headers', 'proxy_redirect',
  138.                         'proxy_read_timeout', 'proxy_redirect_errors',
  139.                         'proxy_send_lowat', 'proxy_send_timeout',
  140.                         'proxy_set_body', 'proxy_set_header', 'proxy_store',
  141.                         'proxy_store_access', 'proxy_temp_file_write_size',
  142.                         'proxy_temp_path', 'proxy_upstream_fail_timeout',
  143.                         'proxy_upstream_max_fails',),
  144.                 22 => array( // rewrite module
  145.                         'break', 'if', 'return', 'rewrite', 'set',
  146.                         'uninitialized_variable_warn',),
  147.                 23 => array( // ssi module
  148.                         'ssi', 'ssi_silent_errors', 'ssi_types',
  149.                         'ssi_value_length',),
  150.                 24 => array( // user id module
  151.                         'userid', 'userid_domain', 'userid_expires',
  152.                         'userid_name', 'userid_p3p', 'userid_path',
  153.                         'userid_service',),
  154.                 25 => array( // NginxHttpAdditionModule
  155.                         'add_before_body', 'add_after_body',),
  156.                 26 => array( // NginxEmbeddedPerlModule
  157.                         'perl', 'perl_modules', 'perl_require', 'perl_set',),
  158.                 27 => array( // NginxHttpFlvStreamModule
  159.                         'flv',),
  160.                 28 => array( // NginxHttpGzipStaticModule
  161.                         'gzip_static',),
  162.                 29 => array( // NginxHttpRandomIndexModule
  163.                         'random_index',),
  164.                 30 => array( // NginxHttpRealIpModule
  165.                         'set_real_ip_from', 'real_ip_header',),
  166.                 31 => array( // NginxHttpSslModule
  167.                         'ssl', 'ssl_certificate', 'ssl_certificate_key',
  168.                         'ssl_client_certificate', 'ssl_dhparam', 'ssl_ciphers',
  169.                         'ssl_prefer_server_ciphers', 'ssl_protocols',
  170.                         'ssl_verify_client', 'ssl_verify_depth',
  171.                         'ssl_session_cache', 'ssl_session_timeout',),
  172.                 32 => array( // NginxHttpStubStatusModule
  173.                         'stub_status',),
  174.                 33 => array( // NginxHttpSubModule
  175.                         'sub_filter', 'sub_filter_once', 'sub_filter_types',),
  176.                 34 => array( // NginxHttpDavModule
  177.                         'dav_access', 'dav_methods', 'create_full_put_path',),
  178.                 35 => array( // NginxHttpXsltModule
  179.                         'xslt_entities', 'xslt_stylesheet', 'xslt_types',),
  180.                 36 => array( // NginxHttpUwsgiModule
  181.                         'uwsgi_pass',),),
  182.         'SYMBOLS' => array('(', ')', '{', '}', '=', '~', ';'),
  183.         'CASE_SENSITIVE' => array(GESHI_COMMENTS => true, 1 => true, 2 => true,
  184.                 3 => true, 4 => true, 5 => true, 6 => true, 7 => true,
  185.                 8 => true, 9 => true, 10 => true, 11 => true, 12 => true,
  186.                 13 => true, 14 => true, 15 => true, 16 => true, 17 => true,
  187.                 18 => true, 19 => true, 20 => true, 21 => true, 22 => true,
  188.                 23 => true, 24 => true, 25 => true, 26 => true, 27 => true,
  189.                 28 => true, 29 => true, 30 => true, 31 => true, 32 => true,
  190.                 33 => true, 34 => true, 35 => true, 36 => true),
  191.         'STYLES' => array(
  192.                 'KEYWORDS' => array(1 => 'color: #b1b100;',
  193.                         2 => 'color: #000000; font-weight: bold;',
  194.                         3 => 'color: #000066;', 4 => 'color: #993333;'),
  195.                 'COMMENTS' => array(1 => 'color: #808080; font-style: italic;',),
  196.                 'ESCAPE_CHAR' => array(
  197.                         0 => 'color: #000099; font-weight: bold;'),
  198.                 'BRACKETS' => array(0 => 'color: #66cc66;'),
  199.                 'STRINGS' => array(0 => 'color: #ff0000;'),
  200.                 'NUMBERS' => array(),
  201.                 'METHODS' => array(1 => 'color: #202020;',
  202.                         2 => 'color: #202020;'),
  203.                 'SYMBOLS' => array(0 => 'color: #66cc66;'),
  204.                 'REGEXPS' => array(0 => 'color: #202020;',
  205.                         4 => 'color: #202020;'), 'SCRIPT' => array()),
  206.         'URLS' => array(1 => 'http://nginx.org/r/{FNAME}',
  207.                 2 => 'http://nginx.org/r/{FNAME}',
  208.                 3 => 'http://nginx.org/r/{FNAME}',
  209.                 4 => 'http://nginx.org/r/{FNAME}',
  210.                 5 => 'http://nginx.org/r/{FNAME}',
  211.                 6 => 'http://nginx.org/r/{FNAME}',
  212.                 7 => 'http://nginx.org/r/{FNAME}',
  213.                 8 => 'http://nginx.org/r/{FNAME}',
  214.                 9 => 'http://nginx.org/r/{FNAME}',
  215.                 10 => 'http://nginx.org/r/{FNAME}',
  216.                 11 => 'http://nginx.org/r/{FNAME}',
  217.                 12 => 'http://nginx.org/r/{FNAME}',
  218.                 13 => 'http://nginx.org/r/{FNAME}',
  219.                 14 => 'http://nginx.org/r/{FNAME}',
  220.                 15 => 'http://nginx.org/r/{FNAME}',
  221.                 16 => 'http://nginx.org/r/{FNAME}',
  222.                 17 => 'http://nginx.org/r/{FNAME}',
  223.                 18 => 'http://nginx.org/r/{FNAME}',
  224.                 19 => 'http://nginx.org/r/{FNAME}',
  225.                 20 => 'http://nginx.org/r/{FNAME}',
  226.                 21 => 'http://nginx.org/r/{FNAME}',
  227.                 22 => 'http://nginx.org/r/{FNAME}',
  228.                 23 => 'http://nginx.org/r/{FNAME}',
  229.                 24 => 'http://nginx.org/r/{FNAME}',
  230.                 25 => 'http://nginx.org/r/{FNAME}',
  231.                 26 => 'http://nginx.org/r/{FNAME}',
  232.                 27 => 'http://nginx.org/r/{FNAME}',
  233.                 28 => 'http://nginx.org/r/{FNAME}',
  234.                 29 => 'http://nginx.org/r/{FNAME}',
  235.                 30 => 'http://nginx.org/r/{FNAME}',
  236.                 31 => 'http://nginx.org/r/{FNAME}',
  237.                 32 => 'http://nginx.org/r/{FNAME}',
  238.                 33 => 'http://nginx.org/r/{FNAME}',
  239.                 34 => 'http://nginx.org/r/{FNAME}',
  240.                 35 => 'http://nginx.org/r/{FNAME}',
  241.                 36 => 'http://nginx.org/r/{FNAME}'),
  242.         'OOLANG' => false,
  243.         'OBJECT_SPLITTERS' => array(),
  244.         'REGEXPS' => array(0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*',
  245.                 4 => '&lt;[a-zA-Z_][a-zA-Z0-9_]*&gt;',),
  246.         'STRICT_MODE_APPLIES' => GESHI_NEVER,
  247.         'SCRIPT_DELIMITERS' => array(),
  248.         'HIGHLIGHT_STRICT_BLOCK' => array());
  249.  
  250. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement