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
29 lines (20 loc) · 827 Bytes
/
arkscript.nanorc
File metadata and controls
29 lines (20 loc) · 827 Bytes
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
syntax "ArkScript" "\.ark$"
## built-in objects
color brightmagenta "\<(nil|true|false)\>"
## captures
color brightgreen "&[a-zA-Z_][a-zA-Z0-9_\-?']*"
## keywords
color brightblue "\<(set|del|import|quote|begin|let|mut|fun|if|while)\>"
color brightcyan "\<(append|concat|list|print|input|writeFile|readFile|writeFile|fileExists?)\>"
## operators
color brightyellow "[.+*|=!@'\^]" "<" ">" "/" "-" "and" "or" "mod" "type" "hasField" "len" "empty?" "firstOf" "tailOf" "headOf" "nil?" "assert" "toNumber" "toString"
## blocks
color yellow "[()]" "\[" "\]" "\{" "\}"
## numbers
icolor brightred "\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
color yellow "["][^"]*[^\\]["]"
## trailing spaces
color ,green "[[:space:]]+$"
## comments
color blue "#.*"