main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
2.5 KB
|
Rev | Line | |
---|
[d24f17c] | 1 | Prism.languages.uorazor = {
|
---|
| 2 | 'comment-hash': {
|
---|
| 3 | pattern: /#.*/,
|
---|
| 4 | alias: 'comment',
|
---|
| 5 | greedy: true
|
---|
| 6 | },
|
---|
| 7 | 'comment-slash': {
|
---|
| 8 | pattern: /\/\/.*/,
|
---|
| 9 | alias: 'comment',
|
---|
| 10 | greedy: true
|
---|
| 11 | },
|
---|
| 12 | 'string': {
|
---|
| 13 | pattern: /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
---|
| 14 | inside: {
|
---|
| 15 | 'punctuation': /^['"]|['"]$/
|
---|
| 16 | },
|
---|
| 17 | greedy: true
|
---|
| 18 | },
|
---|
| 19 | 'source-layers': {
|
---|
| 20 | pattern: /\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,
|
---|
| 21 | alias: 'function'
|
---|
| 22 | },
|
---|
| 23 | 'source-commands': {
|
---|
| 24 | pattern: /\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,
|
---|
| 25 | alias: 'function'
|
---|
| 26 | },
|
---|
| 27 | 'tag-name': {
|
---|
| 28 | pattern: /(^\{%-?\s*)\w+/,
|
---|
| 29 | lookbehind: true,
|
---|
| 30 | alias: 'keyword'
|
---|
| 31 | },
|
---|
| 32 | 'delimiter': {
|
---|
| 33 | pattern: /^\{[{%]-?|-?[%}]\}$/,
|
---|
| 34 | alias: 'punctuation'
|
---|
| 35 | },
|
---|
| 36 | 'function': /\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,
|
---|
| 37 | 'keyword': /\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,
|
---|
| 38 | 'boolean': /\b(?:false|null|true)\b/,
|
---|
| 39 | 'number': /\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,
|
---|
| 40 | 'operator': [
|
---|
| 41 | {
|
---|
| 42 | pattern: /(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,
|
---|
| 43 | lookbehind: true
|
---|
| 44 | },
|
---|
| 45 | /[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/
|
---|
| 46 | ],
|
---|
| 47 | 'punctuation': /[()\[\]{}:.,]/
|
---|
| 48 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.