You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
7.8 KiB
JSON

{
"aliases": [
"hylang"
],
"illegal": "\\S",
"contains": [
{
"className": "meta",
"begin": "^#!",
"end": "$"
},
{
"begin": "\\(",
"end": "\\)",
"contains": [
{
"className": "comment",
"begin": "comment",
"end": "",
"contains": [
{
"begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"
},
{
"className": "doctag",
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
"relevance": 0
}
]
},
{
"keywords": {
"builtin-name": "!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . \/ \/\/ \/\/= \/= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro\/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile\/calls profile\/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"
},
"lexemes": "[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9\/;:]*",
"className": "name",
"begin": "[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9\/;:]*",
"starts": {
"endsWithParent": true,
"relevance": 0,
"contains": [
{
"$ref": "#contains.1"
},
{
"className": "string",
"begin": "\"",
"end": "\"",
"illegal": null,
"contains": [
{
"begin": "\\\\[\\s\\S]",
"relevance": 0
}
]
},
{
"className": "comment",
"begin": "\\^[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9\/;:]*"
},
{
"className": "comment",
"begin": "\\^\\{",
"end": "\\}",
"contains": [
{
"$ref": "#contains.1.contains.0.contains.0"
},
{
"className": "doctag",
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
"relevance": 0
}
]
},
{
"className": "comment",
"begin": ";",
"end": "$",
"contains": [
{
"$ref": "#contains.1.contains.0.contains.0"
},
{
"className": "doctag",
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
"relevance": 0
}
],
"relevance": 0
},
{
"className": "symbol",
"begin": "[:]{1,2}[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9\/;:]*"
},
{
"begin": "[\\[\\{]",
"end": "[\\]\\}]",
"contains": {
"$ref": "#contains.1.contains.1.starts.contains"
}
},
{
"className": "number",
"begin": "[-+]?\\d+(\\.\\d+)?",
"relevance": 0
},
{
"className": "literal",
"begin": "\\b([Tt]rue|[Ff]alse|nil|None)\\b"
},
{
"begin": "[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9\/;:]*",
"relevance": 0
}
]
}
},
{
"$ref": "#contains.1.contains.1.starts"
}
]
},
{
"$ref": "#contains.1.contains.1.starts.contains.1"
},
{
"$ref": "#contains.1.contains.1.starts.contains.2"
},
{
"$ref": "#contains.1.contains.1.starts.contains.3"
},
{
"$ref": "#contains.1.contains.1.starts.contains.4"
},
{
"$ref": "#contains.1.contains.1.starts.contains.5"
},
{
"$ref": "#contains.1.contains.1.starts.contains.6"
},
{
"$ref": "#contains.1.contains.1.starts.contains.7"
},
{
"$ref": "#contains.1.contains.1.starts.contains.8"
}
]
}