]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/golo.micro
To only use the colorscheme groups
[micro.git] / runtime / syntax / golo.micro
1 syntax "Golo" "\.golo$"
2
3 color type "\b(function|fun|)\b"
4 color type "\b(struct|DynamicObject|union|AdapterFabric|Adapter|DynamicVariable|Observable)\b"
5 color type "\b(list|set|array|vector|tuple|map)\b"
6 color type "\b(Ok|Error|Empty|None|Some|Option|Result|Result.ok|Result.fail|Result.error|Result.empty|Optional.empty|Optional.of)\b"
7
8 color statement "\b(augment|pimp)\b"
9 color statement "\b(interfaces|implements|extends|overrides|maker|newInstance)\b"
10 color statement "\b(isEmpty|isNone|isPresent|isSome|iterator|flattened|toList|flatMap|`and|orElseGet|`or|toResult|apply|either)\b"
11 color statement "\b(result|option|trying|raising|nullify|catching)\b"
12 color statement "\b(promise|setFuture|failedFuture|all|any)\b"
13 color statement "\b(initialize|initializeWithinThread|start|future|fallbackTo|onSet|onFail|cancel|enqueue)\b"
14 color statement "\b(println|print|raise|readln|readPassword|secureReadPassword|requireNotNull|require|newTypedArray|range|reversedRange|mapEntry|asInterfaceInstance|asFunctionalInterface|isClosure|fileToText|textToFile|fileExists|currentDir|sleep|uuid|isArray|arrayTypeOf|charValue|intValue|longValue|doubleValue|floatValue|removeByIndex|box)\b"
15 color statement "\b(likelySupported|reset|bold|underscore|blink|reverse_video|concealed|fg_black|fg_red|fg_green|fg_yellow|fg_blue|fg_magenta|fg_cyan|fg_white|bg_black|bg_red|bg_green|bg_yellow|bg_blue|bg_magenta|bg_cyan|bg_white|cursor_position|cursor_save_position|cursor_restore_position|cursor_up|cursor_down|cursor_forward|cursor_backward|erase_display|erase_line)\b"
16 color statement "\b(emptyList|cons|lazyList|fromIter|generator|repeat|iterate)\b"
17 color statement "\b(asLazyList|foldl|foldr|take|takeWhile|drop|dropWhile|subList)\b"
18 color statement "\b(import)\b"
19 color statement "\b(module)\b"
20 color statement "\b(JSON)\b"
21 color statement "\b(stringify|parse|toJSON|toDynamicObject|updateFromJSON)\b"
22 color statement "\b(newInstance|define|getKey|getValue|properties|fallback)\b"
23 color statement "\b(times|upTo|downTo)\b"
24 color statement "\b(format|toInt|toInteger|toDouble|toFloat|toLong)\b"
25 color statement "\b(head|tail|isEmpty|reduce|each|count|exists)\b"
26 color statement "\b(newWithSameType|destruct|append|add|addIfAbsent|prepend|insert|last|unmodifiableView|find|filter|map|join|reverse|reversed|order|ordered|removeAt|include|exclude|remove|delete|has|contains|getOrElse|toArray)\b"
27 color statement "\b(add|addTo|succ|pred|mul|neg|sub|rsub|div|rdiv|mod|rmod|pow|rpow|str|lt|gt|eq|ne|ge|le|`and|`or|`not|xor|even|odd|contains|isEmpty|`is|`isnt|`oftype|`orIfNull|fst|snd|getitem|setitem|getter|id|const|False|True|Null|curry|uncurry|unary|spreader|varargs|swapArgs|swapCurry|swapCouple|swap|invokeWith|pipe|compose|io|andThen|until|recur|cond)\b"
28 color statement "\b(toUpperCase|equals|startsWith)\b"
29
30 color preproc "\b(if|else|then|when|case|match|otherwise)\b"
31 color preproc "\b(with|break|continue|return)\b"
32 color error "\b(try|catch|finally|throw)\b"
33 color identifier "\b(super|this|let|var|local)\b"
34 color special "[(){}]" "\[" "\]"
35 color preproc "\b(for|while|foreach|in)\b"
36 color constant "\b(and|in|is|not|or|isnt|orIfNull)\b"
37
38 color constant "\b(true|false)\b"
39 color constant  "\b(null|undefined)\b"
40
41 color statement "[-+/*=<>!~%&|^]|:="
42 color constant.number   "\b([0-9]+|0x[0-9a-fA-F]*)\b|'.'"
43 color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
44
45 color comment "#.*$"
46 color comment start="----" end="----"
47
48 color todo "TODO:?"