1<?php
2/*************************************************************************************
3 * jquery.php
4 * --------------
5 * Author: Rob Loach (http://www.robloach.net)
6 * Copyright: (c) 2009 Rob Loach (http://www.robloach.net)
7 * Release Version: 1.0.9.1
8 * Date Started: 2009/07/20
9 *
10 * jQuery 1.3 language file for GeSHi.
11 *
12 * CHANGES
13 * -------
14 * 2009/07/20 (1.0.8.5)
15 *  -  First Release
16 *
17 * TODO (updated 2009/07/20)
18 * -------------------------
19 *
20 *************************************************************************************
21 *
22 *     This file is part of GeSHi.
23 *
24 *   GeSHi is free software; you can redistribute it and/or modify
25 *   it under the terms of the GNU General Public License as published by
26 *   the Free Software Foundation; either version 2 of the License, or
27 *   (at your option) any later version.
28 *
29 *   GeSHi is distributed in the hope that it will be useful,
30 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
31 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32 *   GNU General Public License for more details.
33 *
34 *   You should have received a copy of the GNU General Public License
35 *   along with GeSHi; if not, write to the Free Software
36 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
37 *
38 ************************************************************************************/
39
40$language_data = array (
41    'LANG_NAME' => 'jQuery',
42    'COMMENT_SINGLE' => array(1 => '//'),
43    'COMMENT_MULTI' => array('/*' => '*/'),
44    //Regular Expressions
45    'COMMENT_REGEXP' => array(2 => "/(?<=[\\s^])s\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])m?\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\,\\;\\)])/iU"),
46    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
47    'QUOTEMARKS' => array("'", '"'),
48    'ESCAPE_CHAR' => '\\',
49    'KEYWORDS' => array(
50        1 => array(
51            'as', 'break', 'case', 'catch', 'continue', 'decodeURI', 'delete', 'do',
52            'else', 'encodeURI', 'eval', 'finally', 'for', 'if', 'in', 'is', 'item',
53            'instanceof', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'void',
54            'while', 'write', 'with'
55            ),
56        2 => array(
57            'class', 'const', 'default', 'debugger', 'export', 'extends', 'false',
58            'function', 'import', 'namespace', 'new', 'null', 'package', 'private',
59            'protected', 'public', 'super', 'true', 'use', 'var'
60            ),
61        3 => array(
62            // common functions for Window object
63            'alert', 'back', 'close', 'confirm', 'forward', 'home',
64            'name', 'navigate', 'onblur', 'onerror', 'onfocus', 'onload', 'onmove',
65            'onresize', 'onunload', 'open', 'print', 'prompt', 'status',
66            //'blur', 'focus', 'scroll', // Duplicate with kw9
67            //'stop', //Duplicate with kw10
68            ),
69        4 => array(
70            // jQuery Core Functions
71            'jQuery', 'each', 'size', 'length', 'selector', 'context', 'eq',
72            'index', 'data', 'removeData', 'queue', 'dequeue', 'noConflict'
73            //'get', //Duplicate with kw11
74            ),
75        5 => array(
76            // jQuery Attribute Functions
77            'attr', 'removeAttr', 'addClass', 'hasClass', 'removeClass', 'toggleClass',
78            'html', 'text', 'val',
79            ),
80        6 => array(
81            // jQuery Traversing Functions
82            'filter', 'not', 'slice', 'add', 'children', 'closest',
83            'contents', 'find', 'next', 'nextAll', 'parent', 'parents',
84            'prev', 'prevAll', 'siblings', 'andSelf', 'end',
85            //'is',  //Dup with kw1
86            //'offsetParent', //Duplicate with kw8
87            //'map', //Duplicate with kw12
88            ),
89        7 => array(
90            // jQuery Manipulation Functions
91            'append', 'appendTo', 'prepend', 'prependTo', 'after', 'before', 'insertAfter',
92            'insertBefore', 'wrap', 'wrapAll', 'wrapInner', 'replaceWith', 'replaceAll',
93            'empty', 'remove', 'clone',
94            ),
95        8 => array(
96            // jQuery CSS Functions
97            'css', 'offset', 'offsetParent', 'position', 'scrollTop', 'scrollLeft',
98            'height', 'width', 'innerHeight', 'innerWidth', 'outerHeight', 'outerWidth',
99            ),
100        9 => array(
101            // jQuery Events Functions
102            'ready', 'bind', 'one', 'trigger', 'triggerHandler', 'unbind', 'live',
103            'die', 'hover', 'blur', 'change', 'click', 'dblclick', 'error',
104            'focus', 'keydown', 'keypress', 'keyup', 'mousedown', 'mouseenter',
105            'mouseleave', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'resize',
106            'scroll', 'select', 'submit', 'unload',
107            //'toggle', //Duplicate with kw10
108            //'load', //Duplicate with kw11
109            ),
110        10 => array(
111            // jQuery Effects Functions
112            'show', 'hide', 'toggle', 'slideDown', 'slideUp', 'slideToggle', 'fadeIn',
113            'fadeOut', 'fadeTo', 'animate', 'stop',
114            ),
115        11 => array(
116            // jQuery Ajax Functions
117            'ajax', 'load', 'get', 'getJSON', 'getScript', 'post', 'ajaxComplete',
118            'ajaxError', 'ajaxSend', 'ajaxStart', 'ajaxStop', 'ajaxSuccess', 'ajaxSetup',
119            'serialize', 'serializeArray',
120            ),
121        12 => array(
122            // jQuery Utility Functions
123            'support', 'browser', 'version', 'boxModal', 'extend', 'grep', 'makeArray',
124            'map', 'inArray', 'merge', 'unique', 'isArray', 'isFunction', 'trim',
125            'param',
126            ),
127        ),
128    'SYMBOLS' => array(
129        0 => array(
130            '(', ')', '[', ']', '{', '}',
131            '+', '-', '*', '/', '%',
132            '!', '@', '&', '|', '^',
133            '<', '>', '=',
134            ',', ';', '?', ':'
135            ),
136        1 => array(
137            '$'
138            )
139        ),
140    'CASE_SENSITIVE' => array(
141        GESHI_COMMENTS => false,
142        1 => false,
143        2 => false,
144        3 => false,
145        4 => false,
146        5 => false,
147        6 => false,
148        7 => false,
149        8 => false,
150        9 => false,
151        10 => false,
152        11 => false,
153        12 => false
154        ),
155    'STYLES' => array(
156        'KEYWORDS' => array(
157            1 => 'color: #000066; font-weight: bold;',
158            2 => 'color: #003366; font-weight: bold;',
159            3 => 'color: #000066;',
160            4 => 'color: #000066;',
161            5 => 'color: #000066;',
162            6 => 'color: #000066;',
163            7 => 'color: #000066;',
164            8 => 'color: #000066;',
165            9 => 'color: #000066;',
166            10 => 'color: #000066;',
167            11 => 'color: #000066;',
168            12 => 'color: #000066;'
169            ),
170        'COMMENTS' => array(
171            1 => 'color: #006600; font-style: italic;',
172            2 => 'color: #009966; font-style: italic;',
173            'MULTI' => 'color: #006600; font-style: italic;'
174            ),
175        'ESCAPE_CHAR' => array(
176            0 => 'color: #000099; font-weight: bold;'
177            ),
178        'BRACKETS' => array(
179            0 => 'color: #009900;'
180            ),
181        'STRINGS' => array(
182            0 => 'color: #3366CC;'
183            ),
184        'NUMBERS' => array(
185            0 => 'color: #CC0000;'
186            ),
187        'METHODS' => array(
188            1 => 'color: #660066;'
189            ),
190        'SYMBOLS' => array(
191            0 => 'color: #339933;',
192            1 => 'color: #000066;'
193            ),
194        'REGEXPS' => array(
195            ),
196        'SCRIPT' => array(
197            0 => '',
198            1 => '',
199            2 => '',
200            3 => ''
201            )
202        ),
203    'URLS' => array(
204        1 => '',
205        2 => '',
206        3 => '',
207        4 => 'http://docs.jquery.com/Core/{FNAME}',
208        5 => 'http://docs.jquery.com/Attributes/{FNAME}',
209        6 => 'http://docs.jquery.com/Traversing/{FNAME}',
210        7 => 'http://docs.jquery.com/Manipulation/{FNAME}',
211        8 => 'http://docs.jquery.com/CSS/{FNAME}',
212        9 => 'http://docs.jquery.com/Events/{FNAME}',
213        10 => 'http://docs.jquery.com/Effects/{FNAME}',
214        11 => 'http://docs.jquery.com/Ajax/{FNAME}',
215        12 => 'http://docs.jquery.com/Utilities/{FNAME}'
216        ),
217    'OOLANG' => true,
218    'OBJECT_SPLITTERS' => array(
219        1 => '.'
220        ),
221    'REGEXPS' => array(
222        ),
223    'STRICT_MODE_APPLIES' => GESHI_MAYBE,
224    'SCRIPT_DELIMITERS' => array(
225        0 => array(
226            '<script type="text/javascript">' => '</script>'
227            ),
228        1 => array(
229            '<script language="javascript">' => '</script>'
230            )
231        ),
232    'HIGHLIGHT_STRICT_BLOCK' => array(
233        0 => true,
234        1 => true
235        )
236);
237