| 1 |
|
| 2 |
(let "let" @keyword.storage.type) |
| 3 |
(branch ["if" "else"] @keyword.control.conditional) |
| 4 |
(while "while" @keyword.control.repeat) |
| 5 |
(for ["for" "in"] @keyword.control.repeat) |
| 6 |
(import "import" @keyword.control.import) |
| 7 |
(as "as" @keyword.operator) |
| 8 |
(include "include" @keyword.control.import) |
| 9 |
(show "show" @keyword.control) |
| 10 |
(set "set" @keyword.control) |
| 11 |
(return "return" @keyword.control) |
| 12 |
(flow ["break" "continue"] @keyword.control) |
| 13 |
|
| 14 |
|
| 15 |
(let "=" @operator) |
| 16 |
(lambda "=>" @operator) |
| 17 |
(in ["in" "not"] @keyword.operator) |
| 18 |
(context "context" @keyword.control) |
| 19 |
(and "and" @keyword.operator) |
| 20 |
(or "or" @keyword.operator) |
| 21 |
(not "not" @keyword.operator) |
| 22 |
(sign ["+" "-"] @operator) |
| 23 |
(add "+" @operator) |
| 24 |
(sub "-" @operator) |
| 25 |
(mul "*" @operator) |
| 26 |
(div "/" @operator) |
| 27 |
(cmp ["==" "<=" ">=" "!=" "<" ">"] @operator) |
| 28 |
(fraction "/" @operator) |
| 29 |
(fac "!" @operator) |
| 30 |
(attach ["^" "_"] @operator) |
| 31 |
(wildcard) @operator |
| 32 |
|
| 33 |
|
| 34 |
(raw_blck "```" @operator) @markup.raw.block |
| 35 |
(raw_span "`" @operator) @markup.raw.block |
| 36 |
(raw_blck lang: (ident) @tag) |
| 37 |
(label) @tag |
| 38 |
(ref) @tag |
| 39 |
(number) @constant.numeric |
| 40 |
(string) @string |
| 41 |
(content ["[" "]"] @operator) |
| 42 |
(bool) @constant.builtin.boolean |
| 43 |
(none) @constant.builtin |
| 44 |
(auto) @constant.builtin |
| 45 |
(ident) @variable |
| 46 |
|
| 47 |
|
| 48 |
(call |
| 49 |
item: (ident) @function) |
| 50 |
(call |
| 51 |
item: (field field: (ident) @function.method)) |
| 52 |
(tagged field: (ident) @tag) |
| 53 |
(field field: (ident) @tag) |
| 54 |
(comment) @comment |
| 55 |
|
| 56 |
|
| 57 |
(item "-" @markup.list) |
| 58 |
(term ["/" ":"] @markup.list) |
| 59 |
(heading "=" @markup.heading.marker) @markup.heading.1 |
| 60 |
(heading "==" @markup.heading.marker) @markup.heading.2 |
| 61 |
(heading "===" @markup.heading.marker) @markup.heading.3 |
| 62 |
(heading "====" @markup.heading.marker) @markup.heading.4 |
| 63 |
(heading "=====" @markup.heading.marker) @markup.heading.5 |
| 64 |
(heading "======" @markup.heading.marker) @markup.heading.6 |
| 65 |
(url) @tag |
| 66 |
(emph) @markup.italic |
| 67 |
(strong) @markup.bold |
| 68 |
(symbol) @constant.character |
| 69 |
(shorthand) @constant.builtin |
| 70 |
(quote) @markup.quote |
| 71 |
(align) @operator |
| 72 |
(letter) @constant.character |
| 73 |
(linebreak) @constant.builtin |
| 74 |
|
| 75 |
(math "$" @operator) |
| 76 |
"#" @operator |
| 77 |
"end" @operator |
| 78 |
|
| 79 |
(escape) @constant.character.escape |
| 80 |
["(" ")" "{" "}"] @punctuation.bracket |
| 81 |
["," ";" ".." ":" "sep"] @punctuation.delimiter |
| 82 |
"assign" @punctuation |
| 83 |
(field "." @punctuation) |