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 [PR.PR_ATTRIB_VALUE, /^~\w+/],
16 /* special variables */
17 [PR.PR_TAG, /^(?:super|thisFunctionDef|thisFunction|thisMethod|thisProcess|thisThread|this)\b/],
19 [PR.PR_KEYWORD, /^(?:true|false|nil|inf)\b/],
20 /* variable declarations */
21 [PR.PR_DECLARATION, /^(?:var|classvar|const|arg)\b/],
22 // [PR.PR_DECLARATION, /^\|/],
24 [PR.PR_TYPE, /^\b([A-Z][A-Za-z_0-9]+)\b/],
25 [PR.PR_COMMENT, /^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/], //fixme: nested comments
27 [PR.PR_LITERAL, /^-?\d+r[\da-zA-Z]+(\.[\da-zA-Z]+)?/],
28 // [PR.PR_LITERAL, /^-?(?:(?:\d+(?:\.\d*)?)(?:e[+\-]?\d+)?)(pi)?|pi/],
29 [PR.PR_LITERAL, /^-?(?:(?:\d+(\.\d+)?)(?:e[+\-]?\d+)?(pi)?)|(?:pi\b)/],
31 [PR.PR_PLAIN, /^[a-z_]\w*/i],
32 // [PR.PR_PUNCTUATION, /^[-.,;!?#$%&\|/+*<>=@()\[\]{}]/]
33 [PR.PR_PUNCTUATION, /^[-.,;#()\[\]{}]/]