| 1 |
|
| 2 |
|
| 3 |
[ |
| 4 |
(linecomment) |
| 5 |
(blockcomment) |
| 6 |
] @comment |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
(string) @string |
| 11 |
(char) @constant.character |
| 12 |
|
| 13 |
(escape) @constant.character.escape |
| 14 |
|
| 15 |
(float) @constant.numeric.float |
| 16 |
(int) @constant.numeric.integer |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
(matchrule "|" @punctuation.delimiter) |
| 21 |
|
| 22 |
(tatomic "|" @punctuation.delimiter) |
| 23 |
|
| 24 |
[ |
| 25 |
"," |
| 26 |
"->" |
| 27 |
"." |
| 28 |
":" |
| 29 |
"::" |
| 30 |
"<-" |
| 31 |
";" |
| 32 |
] @punctuation.delimiter |
| 33 |
|
| 34 |
[ |
| 35 |
"<" |
| 36 |
">" |
| 37 |
"(" |
| 38 |
")" |
| 39 |
"[" |
| 40 |
"]" |
| 41 |
"{" |
| 42 |
"}" |
| 43 |
] @punctuation.bracket |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
[ |
| 48 |
"as" |
| 49 |
(externtarget) |
| 50 |
"forall" |
| 51 |
"handle" |
| 52 |
"handler" |
| 53 |
"in" |
| 54 |
"infix" |
| 55 |
"infixl" |
| 56 |
"infixr" |
| 57 |
"mask" |
| 58 |
(behindmod) |
| 59 |
(pub) |
| 60 |
"some" |
| 61 |
] @keyword |
| 62 |
|
| 63 |
|
| 64 |
(constructor |
| 65 |
"lazy" @keyword) |
| 66 |
|
| 67 |
|
| 68 |
(matchexpr |
| 69 |
"lazy" @keyword) |
| 70 |
|
| 71 |
[ |
| 72 |
(con) |
| 73 |
"ctl" |
| 74 |
"fn" |
| 75 |
"fun" |
| 76 |
] @keyword.function |
| 77 |
|
| 78 |
"with" @keyword.control |
| 79 |
|
| 80 |
[ |
| 81 |
"elif" |
| 82 |
"else" |
| 83 |
"if" |
| 84 |
"match" |
| 85 |
"then" |
| 86 |
] @keyword.control.conditional |
| 87 |
|
| 88 |
[ |
| 89 |
"import" |
| 90 |
|
| 91 |
"module" |
| 92 |
] @keyword.control.import |
| 93 |
|
| 94 |
[ |
| 95 |
"alias" |
| 96 |
"effect" |
| 97 |
"struct" |
| 98 |
"type" |
| 99 |
"val" |
| 100 |
"var" |
| 101 |
] @keyword.storage.type |
| 102 |
|
| 103 |
[ |
| 104 |
"abstract" |
| 105 |
"extern" |
| 106 |
"final" |
| 107 |
(inlinemod) |
| 108 |
(externinline) |
| 109 |
(typemod) |
| 110 |
(structmod) |
| 111 |
(effectmod) |
| 112 |
"named" |
| 113 |
(override) |
| 114 |
(controlmod) |
| 115 |
|
| 116 |
(tailmod) |
| 117 |
] @keyword.storage.modifier |
| 118 |
|
| 119 |
(fipmod |
| 120 |
["fip" "fbip"] @keyword.storage.modifier) |
| 121 |
|
| 122 |
"return" @keyword.control.return |
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
[ |
| 127 |
"!" |
| 128 |
"~" |
| 129 |
"=" |
| 130 |
":=" |
| 131 |
(idop) |
| 132 |
(op) |
| 133 |
(qidop) |
| 134 |
] @operator |
| 135 |
|
| 136 |
(modulepath) @namespace |
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
(pattern |
| 141 |
(identifier |
| 142 |
(varid) @variable)) |
| 143 |
|
| 144 |
(paramid |
| 145 |
(identifier |
| 146 |
(varid) @variable.parameter)) |
| 147 |
|
| 148 |
(pparameter |
| 149 |
(pattern |
| 150 |
(identifier |
| 151 |
(varid) @variable.parameter))) |
| 152 |
|
| 153 |
(pparameter |
| 154 |
(qimplicit) @variable.parameter) |
| 155 |
|
| 156 |
(puredecl |
| 157 |
(binder |
| 158 |
(qidentifier) @constant)) |
| 159 |
|
| 160 |
|
| 161 |
(argument |
| 162 |
[(identifier) (qimplicit)] @variable.parameter |
| 163 |
"=" |
| 164 |
(expr)) |
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
(typecon |
| 169 |
[(varid) (qvarid)] @type) |
| 170 |
|
| 171 |
(tbinder |
| 172 |
(varid) @type) |
| 173 |
|
| 174 |
(typeid |
| 175 |
(varid) @type) |
| 176 |
|
| 177 |
(typedecl |
| 178 |
"effect" |
| 179 |
(varid) @type) |
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
(fundecl |
| 184 |
(identifier) @function) |
| 185 |
|
| 186 |
(puredecl |
| 187 |
(qidentifier) @function) |
| 188 |
|
| 189 |
(externdecl |
| 190 |
(qidentifier) @function) |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
(opclause |
| 195 |
(qidentifier) @function) |
| 196 |
|
| 197 |
(operation |
| 198 |
(identifier) @function) |
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
(opexpr |
| 204 |
(atom |
| 205 |
(name) @function) |
| 206 |
. |
| 207 |
[ |
| 208 |
call: "(" (arguments)? ")" |
| 209 |
trailing_lambda: [(block) (fnexpr)] |
| 210 |
]) |
| 211 |
|
| 212 |
(opexpr |
| 213 |
(atom) |
| 214 |
(name) @function) |
| 215 |
|
| 216 |
(ntlexpr |
| 217 |
(atom |
| 218 |
(name) @function) |
| 219 |
. |
| 220 |
("(" (arguments)? ")")) |
| 221 |
|
| 222 |
(ntlexpr |
| 223 |
(atom) |
| 224 |
(name) @function) |
| 225 |
|
| 226 |
[(conid) (qconid)] @constructor |
| 227 |
|
| 228 |
[ |
| 229 |
"initially" |
| 230 |
"finally" |
| 231 |
] @function.builtin |