Uh oh!
There was an error while loading. Please reload this page.
forked from ArkScript-lang/Ark
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharkscript.nanorc
More file actions
Latest commit
41 lines (31 loc) · 1.36 KB
/
Copy patharkscript.nanorc
File metadata and controls
41 lines (31 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
syntax"ArkScript""\.ark$"
## built-in objects
colorbrightmagenta"\<(nil|true|false)\>"
## captures
colorbrightgreen"&[a-zA-Z_][a-zA-Z0-9_\-?']*"
## keywords
colorbrightblue"\<(set|del|import|quote|begin|let|mut|fun|if|while)\>"
## builtins list
colorbrightcyan"\<(append|concat|list|list:reverse|list:find|list:slice|list:sort|list:fill|list:setAt)\>"
## builtins io
colorbrightcyan"\<(print|puts|input|io:writeFile|io:readFile|io:fileExists?|io:listFiles|io:dir?|io:makeDir|io:removeFiles)\>"
## builtins time
colorbrightcyan"\<(time)\>"
## builtins system
colorbrightcyan"\<(sys:exec|sys:sleep)\>"
## builtins string
colorbrightcyan"\<(str:format|str:find|str:removeAt)\>"
## builtins mathematics
colorbrightcyan"\<(math:exp|math:ln|math:ceil|math:floor|math:round|math:NaN?|math:Inf?|math:pi|math:e|math:tau|math:Inf|math:NaN|math:cos|math:sin|math:tan|math:arccos|math:arcsin|math:arctan)\>"
## operators
colorbrightyellow"[.+*|=!@'\^]""<"">""/""-""and""or""mod""type""hasField""len""empty?""tail""head""nil?""assert""toNumber""toString"
## blocks
coloryellow"[()]""\[""\]""\{""\}"
## numbers
icolorbrightred"\b(([1-9][0-9]+)|0+)\.[0-9]+\b""\b([1-9][0-9]*)\b""\b0o?[0-7]*\b""\b0x[1-9a-f][0-9a-f]*\b""\b0b[01]+\b"
## strings
coloryellow"["][^"]*[^\\]["]"
## trailing spaces
color ,green"[[:space:]]+$"
## comments
colorblue"#.*"