8803d93872
This may be a breaking change if you are using a plugin that checks the filetype. All the default plugins are now updated, just make the filetype you were checking for previously all lowercase.
49 lines
3.3 KiB
Text
49 lines
3.3 KiB
Text
syntax "golo" "\.golo$"
|
|
|
|
color type "\b(function|fun|)\b"
|
|
color type "\b(struct|DynamicObject|union|AdapterFabric|Adapter|DynamicVariable|Observable)\b"
|
|
color type "\b(list|set|array|vector|tuple|map)\b"
|
|
color type "\b(Ok|Error|Empty|None|Some|Option|Result|Result.ok|Result.fail|Result.error|Result.empty|Optional.empty|Optional.of)\b"
|
|
|
|
color statement "\b(augment|pimp)\b"
|
|
color statement "\b(interfaces|implements|extends|overrides|maker|newInstance)\b"
|
|
color statement "\b(isEmpty|isNone|isPresent|isSome|iterator|flattened|toList|flatMap|`and|orElseGet|`or|toResult|apply|either)\b"
|
|
color statement "\b(result|option|trying|raising|nullify|catching)\b"
|
|
color statement "\b(promise|setFuture|failedFuture|all|any)\b"
|
|
color statement "\b(initialize|initializeWithinThread|start|future|fallbackTo|onSet|onFail|cancel|enqueue)\b"
|
|
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"
|
|
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"
|
|
color statement "\b(emptyList|cons|lazyList|fromIter|generator|repeat|iterate)\b"
|
|
color statement "\b(asLazyList|foldl|foldr|take|takeWhile|drop|dropWhile|subList)\b"
|
|
color statement "\b(import)\b"
|
|
color statement "\b(module)\b"
|
|
color statement "\b(JSON)\b"
|
|
color statement "\b(stringify|parse|toJSON|toDynamicObject|updateFromJSON)\b"
|
|
color statement "\b(newInstance|define|getKey|getValue|properties|fallback)\b"
|
|
color statement "\b(times|upTo|downTo)\b"
|
|
color statement "\b(format|toInt|toInteger|toDouble|toFloat|toLong)\b"
|
|
color statement "\b(head|tail|isEmpty|reduce|each|count|exists)\b"
|
|
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"
|
|
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"
|
|
color statement "\b(toUpperCase|equals|startsWith)\b"
|
|
|
|
color preproc "\b(if|else|then|when|case|match|otherwise)\b"
|
|
color preproc "\b(with|break|continue|return)\b"
|
|
color error "\b(try|catch|finally|throw)\b"
|
|
color identifier "\b(super|this|let|var|local)\b"
|
|
color special "[(){}]" "\[" "\]"
|
|
color preproc "\b(for|while|foreach|in)\b"
|
|
color constant "\b(and|in|is|not|or|isnt|orIfNull)\b"
|
|
|
|
color constant "\b(true|false)\b"
|
|
color constant "\b(null|undefined)\b"
|
|
|
|
color statement "[-+/*=<>!~%&|^]|:="
|
|
color constant.number "\b([0-9]+|0x[0-9a-fA-F]*)\b|'.'"
|
|
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
|
|
color comment "#.*$"
|
|
color comment start="----" end="----"
|
|
|
|
color todo "TODO:?"
|