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:
994 bytes
|
Line | |
---|
1 | Prism.languages.monkey = {
|
---|
2 | 'comment': {
|
---|
3 | pattern: /^#Rem\s[\s\S]*?^#End|'.+/im,
|
---|
4 | greedy: true
|
---|
5 | },
|
---|
6 | 'string': {
|
---|
7 | pattern: /"[^"\r\n]*"/,
|
---|
8 | greedy: true,
|
---|
9 | },
|
---|
10 | 'preprocessor': {
|
---|
11 | pattern: /(^[ \t]*)#.+/m,
|
---|
12 | lookbehind: true,
|
---|
13 | greedy: true,
|
---|
14 | alias: 'property'
|
---|
15 | },
|
---|
16 |
|
---|
17 | 'function': /\b\w+(?=\()/,
|
---|
18 | 'type-char': {
|
---|
19 | pattern: /\b[?%#$]/,
|
---|
20 | alias: 'class-name'
|
---|
21 | },
|
---|
22 | 'number': {
|
---|
23 | pattern: /((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,
|
---|
24 | lookbehind: true
|
---|
25 | },
|
---|
26 | 'keyword': /\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,
|
---|
27 | 'operator': /\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,
|
---|
28 | 'punctuation': /[.,:;()\[\]]/
|
---|
29 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.