1 PR.registerLangHandler(
5 [PR.PR_PLAIN, /^[\t\n\r \xA0]+/, null, '\t\n\r \xA0'],
7 [PR.PR_STRING, /^"(?:[^\\"]|\\.)*(?:"|$)/, null, '"'],
11 [PR.PR_LITERAL, /^\$(\\)?./],
13 [PR.PR_ATTRIB_NAME, /^\\\w+/],
14 [PR.PR_ATTRIB_NAME, /^'[^']+'/],
15 /* special variables */
16 [PR.PR_TAG, /^(?:super|thisFunctionDef|thisFunction|thisMethod|thisProcess|thisThread|this)\b/],
18 [PR.PR_KEYWORD, /^(?:true|false|nil|inf)\b/],
19 /* variable declarations */
20 [PR.PR_DECLARATION, /^(?:var|classvar|const|arg)\b/],
21 // [PR.PR_DECLARATION, /^\|/],
23 [PR.PR_TYPE, /^\b([A-Z][A-Za-z_0-9]+)\b/],
24 [PR.PR_COMMENT, /^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/], //fixme: nested comments
26 [PR.PR_LITERAL, /^-?\d+r[\da-zA-Z]+(\.[\da-zA-Z]+)?/],
27 // [PR.PR_LITERAL, /^-?(?:(?:\d+(?:\.\d*)?)(?:e[+\-]?\d+)?)(pi)?|pi/],
28 [PR.PR_LITERAL, /^-?(?:(?:\d+(\.\d+)?)(?:e[+\-]?\d+)?)(pi)?|pi/],
30 [PR.PR_PLAIN, /^[a-z_]\w*/i],
31 // [PR.PR_PUNCTUATION, /^[-.,;!#$%&/+*<>=@()\[\]{}]/]
32 [PR.PR_PUNCTUATION, /^[-.,;!?#$%&\|/+*<>=@()\[\]{}]/]