| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
(comment) @comment.line |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
["(" ")" "[" "]" "{" "}"] @punctuation.bracket |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
[(ignore) (null)] @constant.builtin |
| 14 |
|
| 15 |
(bool) @constant.builtin.boolean |
| 16 |
|
| 17 |
(int) @constant.numeric.integer |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
(string) @string |
| 24 |
(string (string_escape) @constant.character.escape) |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
(keyword) @string.special.symbol |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
(dot) @string.special.path |
| 33 |
(dotdot) @string.special.path |
| 34 |
(command) @string.special.path |
| 35 |
(subpath (symbol) @string.special.path) |
| 36 |
|
| 37 |
|
| 38 |
(subpath (slash) @function) |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
(list . (symbol) @function) |
| 45 |
|
| 46 |
|
| 47 |
(cons (symbol) @variable) |
| 48 |
(scope (symbol) @variable) |
| 49 |
(path form: (symbol) @variable) |
| 50 |
(symbind form: (symbol) @variable) |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
(list . (symbol) @keyword.control.conditional (#match? @keyword.control.conditional "^(if|case|cond|when)$")) |
| 58 |
(cons . (symbol) @keyword.control.conditional (#match? @keyword.control.conditional "^(if|case|cond|when)$")) |
| 59 |
|
| 60 |
(list . (symbol) @keyword.control.repeat (#match? @keyword.control.repeat "^(each)$")) |
| 61 |
(cons . (symbol) @keyword.control.repeat (#match? @keyword.control.repeat "^(each)$")) |
| 62 |
|
| 63 |
(list . (symbol) @label (#match? @label "^(def|defop|defn)$")) |
| 64 |
(cons . (symbol) @label (#match? @label "^(def|defop|defn)$")) |
| 65 |
|
| 66 |
(list . (symbol) @function.builtin (#match? @function.builtin "^(dump|mkfs|json|log|error|now|cons|wrap|unwrap|eval|make-scope|bind|meta|with-meta|null\\?|ignore\\?|boolean\\?|number\\?|string\\?|symbol\\?|scope\\?|sink\\?|source\\?|list\\?|pair\\?|applicative\\?|operative\\?|combiner\\?|path\\?|empty\\?|thunk\\?|\\+|\\*|quot|-|max|min|=|>|>=|<|<=|list->source|across|emit|next|reduce-kv|assoc|symbol->string|string->symbol|str|substring|trim|scope->list|string->fs-path|string->cmd-path|string->dir|subpath|path-name|path-stem|with-image|with-dir|with-args|with-cmd|with-stdin|with-env|with-insecure|with-label|with-port|with-tls|with-mount|thunk-cmd|thunk-args|resolve|start|addr|wait|read|cache-dir|binds\\?|recall-memo|store-memo|mask|list|list\\*|first|rest|length|second|third|map|map-pairs|foldr|foldl|append|filter|conj|list->scope|merge|apply|id|always|vals|keys|memo|succeeds\\?|run|last|take|take-all|insecure!|from|cd|wrap-cmd|mkfile|path-base|not)$")) |
| 67 |
(cons . (symbol) @function.builtin (#match? @function.builtin "^(dump|mkfs|json|log|error|now|cons|wrap|unwrap|eval|make-scope|bind|meta|with-meta|null\\?|ignore\\?|boolean\\?|number\\?|string\\?|symbol\\?|scope\\?|sink\\?|source\\?|list\\?|pair\\?|applicative\\?|operative\\?|combiner\\?|path\\?|empty\\?|thunk\\?|\\+|\\*|quot|-|max|min|=|>|>=|<|<=|list->source|across|emit|next|reduce-kv|assoc|symbol->string|string->symbol|str|substring|trim|scope->list|string->fs-path|string->cmd-path|string->dir|subpath|path-name|path-stem|with-image|with-dir|with-args|with-cmd|with-stdin|with-env|with-insecure|with-label|with-port|with-tls|with-mount|thunk-cmd|thunk-args|resolve|start|addr|wait|read|cache-dir|binds\\?|recall-memo|store-memo|mask|list|list\\*|first|rest|length|second|third|map|map-pairs|foldr|foldl|append|filter|conj|list->scope|merge|apply|id|always|vals|keys|memo|succeeds\\?|run|last|take|take-all|insecure!|from|cd|wrap-cmd|mkfile|path-base|not)$")) |
| 68 |
|
| 69 |
(list . (symbol) @function.macro (#match? @function.macro "^(op|fn|current-scope|quote|let|provide|module|or|and|->|curryfn|for|\\$|linux)$")) |
| 70 |
(cons . (symbol) @function.macro (#match? @function.macro "^(op|fn|current-scope|quote|let|provide|module|or|and|->|curryfn|for|\\$|linux)$")) |
| 71 |
|
| 72 |
(list . (symbol) @keyword (#match? @keyword "^(do|doc)$")) |
| 73 |
(cons . (symbol) @keyword (#match? @keyword "^(do|doc)$")) |
| 74 |
|
| 75 |
(list . (symbol) @keyword.control.import (#match? @keyword.control.import "^(use|import|load)$")) |
| 76 |
(cons . (symbol) @keyword.control.import (#match? @keyword.control.import "^(use|import|load)$")) |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
(list (symbol) @operator (#match? @operator "&")) |
| 83 |
(cons (symbol) @operator (#match? @operator "&")) |
| 84 |
|
| 85 |
|
| 86 |
(list |
| 87 |
. |
| 88 |
(symbol) @function.macro |
| 89 |
(#eq? @function.macro "->") |
| 90 |
. |
| 91 |
(symbol) @variable.parameter |
| 92 |
(symbol) @function) |
| 93 |
|
| 94 |
|
| 95 |
(list |
| 96 |
. |
| 97 |
(symbol) @function.macro |
| 98 |
(#eq? @function.macro "->") |
| 99 |
. |
| 100 |
(_) |
| 101 |
(symbol) @function) |