| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|---|
| 3 | <plist version="1.0"> |
|---|
| 4 | <dict> |
|---|
| 5 | <key>fileTypes</key> |
|---|
| 6 | <array> |
|---|
| 7 | <string>lgt</string> |
|---|
| 8 | </array> |
|---|
| 9 | <key>foldingStartMarker</key> |
|---|
| 10 | <string>(/\*|:-\s+(object|protocol|category)(?=[(]))</string> |
|---|
| 11 | <key>foldingStopMarker</key> |
|---|
| 12 | <string>(\*/|:-\s+end_(object|protocol|category)(?=[.]))</string> |
|---|
| 13 | <key>keyEquivalent</key> |
|---|
| 14 | <string>^~L</string> |
|---|
| 15 | <key>name</key> |
|---|
| 16 | <string>Logtalk</string> |
|---|
| 17 | <key>patterns</key> |
|---|
| 18 | <array> |
|---|
| 19 | <dict> |
|---|
| 20 | <key>begin</key> |
|---|
| 21 | <string>/\*</string> |
|---|
| 22 | <key>captures</key> |
|---|
| 23 | <dict> |
|---|
| 24 | <key>0</key> |
|---|
| 25 | <dict> |
|---|
| 26 | <key>name</key> |
|---|
| 27 | <string>punctuation.definition.comment.logtalk</string> |
|---|
| 28 | </dict> |
|---|
| 29 | </dict> |
|---|
| 30 | <key>end</key> |
|---|
| 31 | <string>\*/</string> |
|---|
| 32 | <key>name</key> |
|---|
| 33 | <string>comment.block.logtalk</string> |
|---|
| 34 | </dict> |
|---|
| 35 | <dict> |
|---|
| 36 | <key>captures</key> |
|---|
| 37 | <dict> |
|---|
| 38 | <key>1</key> |
|---|
| 39 | <dict> |
|---|
| 40 | <key>name</key> |
|---|
| 41 | <string>punctuation.definition.comment.logtalk</string> |
|---|
| 42 | </dict> |
|---|
| 43 | </dict> |
|---|
| 44 | <key>match</key> |
|---|
| 45 | <string>(%).*$\n?</string> |
|---|
| 46 | <key>name</key> |
|---|
| 47 | <string>comment.line.percentage.logtalk</string> |
|---|
| 48 | </dict> |
|---|
| 49 | <dict> |
|---|
| 50 | <key>captures</key> |
|---|
| 51 | <dict> |
|---|
| 52 | <key>1</key> |
|---|
| 53 | <dict> |
|---|
| 54 | <key>name</key> |
|---|
| 55 | <string>storage.type.opening.logtalk</string> |
|---|
| 56 | </dict> |
|---|
| 57 | <key>2</key> |
|---|
| 58 | <dict> |
|---|
| 59 | <key>name</key> |
|---|
| 60 | <string>punctuation.definition.storage.type.logtalk</string> |
|---|
| 61 | </dict> |
|---|
| 62 | <key>4</key> |
|---|
| 63 | <dict> |
|---|
| 64 | <key>name</key> |
|---|
| 65 | <string>entity.name.type.logtalk</string> |
|---|
| 66 | </dict> |
|---|
| 67 | </dict> |
|---|
| 68 | <key>match</key> |
|---|
| 69 | <string>((:-)\s(object|protocol|category|module))(?:\()([^(,)]+)</string> |
|---|
| 70 | </dict> |
|---|
| 71 | <dict> |
|---|
| 72 | <key>captures</key> |
|---|
| 73 | <dict> |
|---|
| 74 | <key>1</key> |
|---|
| 75 | <dict> |
|---|
| 76 | <key>name</key> |
|---|
| 77 | <string>punctuation.definition.storage.type.logtalk</string> |
|---|
| 78 | </dict> |
|---|
| 79 | </dict> |
|---|
| 80 | <key>match</key> |
|---|
| 81 | <string>(:-)\s(end_(object|protocol|category))(?=[.])</string> |
|---|
| 82 | <key>name</key> |
|---|
| 83 | <string>storage.type.closing.logtalk</string> |
|---|
| 84 | </dict> |
|---|
| 85 | <dict> |
|---|
| 86 | <key>match</key> |
|---|
| 87 | <string>\b(complements|extends|i(nstantiates|mp(orts|lements))|specializes)(?=[(])</string> |
|---|
| 88 | <key>name</key> |
|---|
| 89 | <string>storage.type.relations.logtalk</string> |
|---|
| 90 | </dict> |
|---|
| 91 | <dict> |
|---|
| 92 | <key>captures</key> |
|---|
| 93 | <dict> |
|---|
| 94 | <key>1</key> |
|---|
| 95 | <dict> |
|---|
| 96 | <key>name</key> |
|---|
| 97 | <string>punctuation.definition.storage.modifier.logtalk</string> |
|---|
| 98 | </dict> |
|---|
| 99 | </dict> |
|---|
| 100 | <key>match</key> |
|---|
| 101 | <string>(:-)\s(e(lse|ndif)|dynamic|synchronized|threaded)(?=[.])</string> |
|---|
| 102 | <key>name</key> |
|---|
| 103 | <string>storage.modifier.others.logtalk</string> |
|---|
| 104 | </dict> |
|---|
| 105 | <dict> |
|---|
| 106 | <key>captures</key> |
|---|
| 107 | <dict> |
|---|
| 108 | <key>1</key> |
|---|
| 109 | <dict> |
|---|
| 110 | <key>name</key> |
|---|
| 111 | <string>punctuation.definition.storage.modifier.logtalk</string> |
|---|
| 112 | </dict> |
|---|
| 113 | </dict> |
|---|
| 114 | <key>match</key> |
|---|
| 115 | <string>(:-)\s(calls|e(lif|n(coding|sure_loaded)|xport)|i(f|n(itialization|fo))|set_(logtalk|prolog)_flag|uses)(?=[(])</string> |
|---|
| 116 | <key>name</key> |
|---|
| 117 | <string>storage.modifier.others.logtalk</string> |
|---|
| 118 | </dict> |
|---|
| 119 | <dict> |
|---|
| 120 | <key>captures</key> |
|---|
| 121 | <dict> |
|---|
| 122 | <key>1</key> |
|---|
| 123 | <dict> |
|---|
| 124 | <key>name</key> |
|---|
| 125 | <string>punctuation.definition.storage.modifier.logtalk</string> |
|---|
| 126 | </dict> |
|---|
| 127 | </dict> |
|---|
| 128 | <key>match</key> |
|---|
| 129 | <string>(:-)\s(alias|info|d(ynamic|iscontiguous)|m(eta_predicate|ode|ultifile)|p(ublic|r(otected|ivate))|op|use(s|_module)|synchronized)(?=[(])</string> |
|---|
| 130 | <key>name</key> |
|---|
| 131 | <string>storage.modifier.others.logtalk</string> |
|---|
| 132 | </dict> |
|---|
| 133 | <dict> |
|---|
| 134 | <key>match</key> |
|---|
| 135 | <string>(:|::|\^\^)</string> |
|---|
| 136 | <key>name</key> |
|---|
| 137 | <string>keyword.operator.message-sending.logtalk</string> |
|---|
| 138 | </dict> |
|---|
| 139 | <dict> |
|---|
| 140 | <key>match</key> |
|---|
| 141 | <string>([{}])</string> |
|---|
| 142 | <key>name</key> |
|---|
| 143 | <string>keyword.operator.external-call.logtalk</string> |
|---|
| 144 | </dict> |
|---|
| 145 | <dict> |
|---|
| 146 | <key>match</key> |
|---|
| 147 | <string>(\?|@)</string> |
|---|
| 148 | <key>name</key> |
|---|
| 149 | <string>keyword.operator.mode.logtalk</string> |
|---|
| 150 | </dict> |
|---|
| 151 | <dict> |
|---|
| 152 | <key>match</key> |
|---|
| 153 | <string>(@=<|@<|@>|@>=|==|\\==)</string> |
|---|
| 154 | <key>name</key> |
|---|
| 155 | <string>keyword.operator.comparison.term.logtalk</string> |
|---|
| 156 | </dict> |
|---|
| 157 | <dict> |
|---|
| 158 | <key>match</key> |
|---|
| 159 | <string>(=<|<|>|>=|=:=|=\\=)</string> |
|---|
| 160 | <key>name</key> |
|---|
| 161 | <string>keyword.operator.comparison.arithmetic.logtalk</string> |
|---|
| 162 | </dict> |
|---|
| 163 | <dict> |
|---|
| 164 | <key>match</key> |
|---|
| 165 | <string>(<<|>>|/\\|\\/|\\)</string> |
|---|
| 166 | <key>name</key> |
|---|
| 167 | <string>keyword.operator.bitwise.logtalk</string> |
|---|
| 168 | </dict> |
|---|
| 169 | <dict> |
|---|
| 170 | <key>match</key> |
|---|
| 171 | <string>\b(mod|rem)\b(?![-!(^~])</string> |
|---|
| 172 | <key>name</key> |
|---|
| 173 | <string>keyword.operator.evaluable.logtalk</string> |
|---|
| 174 | </dict> |
|---|
| 175 | <dict> |
|---|
| 176 | <key>match</key> |
|---|
| 177 | <string>(\*\*|\+|-|\*|/|//)</string> |
|---|
| 178 | <key>name</key> |
|---|
| 179 | <string>keyword.operator.evaluable.logtalk</string> |
|---|
| 180 | </dict> |
|---|
| 181 | <dict> |
|---|
| 182 | <key>match</key> |
|---|
| 183 | <string>(:-|!|\\+|,|;|-->|->|=|\=|\.|=\.\.|\bis\b)</string> |
|---|
| 184 | <key>name</key> |
|---|
| 185 | <string>keyword.operator.misc.logtalk</string> |
|---|
| 186 | </dict> |
|---|
| 187 | <dict> |
|---|
| 188 | <key>match</key> |
|---|
| 189 | <string>\b(a(bs|tan)|c(eiling|os)|exp|flo(at(_(integer|fractional)_part)?|or)|log|mod|r(em|ound)|s(i(n|gn)|qrt)|truncate)(?=[(])</string> |
|---|
| 190 | <key>name</key> |
|---|
| 191 | <string>support.function.evaluable.logtalk</string> |
|---|
| 192 | </dict> |
|---|
| 193 | <dict> |
|---|
| 194 | <key>match</key> |
|---|
| 195 | <string>\b(true|fail|repeat)\b(?![-!(^~])</string> |
|---|
| 196 | <key>name</key> |
|---|
| 197 | <string>support.function.control.logtalk</string> |
|---|
| 198 | </dict> |
|---|
| 199 | <dict> |
|---|
| 200 | <key>match</key> |
|---|
| 201 | <string>\b(ca(ll|tch)|throw|once)(?=[(])</string> |
|---|
| 202 | <key>name</key> |
|---|
| 203 | <string>support.function.control.logtalk</string> |
|---|
| 204 | </dict> |
|---|
| 205 | <dict> |
|---|
| 206 | <key>match</key> |
|---|
| 207 | <string>\b((get|p(eek|ut))_(c(har|ode)|byte)|nl)(?=[(])</string> |
|---|
| 208 | <key>name</key> |
|---|
| 209 | <string>support.function.chars-and-bytes-io.logtalk</string> |
|---|
| 210 | </dict> |
|---|
| 211 | <dict> |
|---|
| 212 | <key>match</key> |
|---|
| 213 | <string>\bnl\b</string> |
|---|
| 214 | <key>name</key> |
|---|
| 215 | <string>support.function.chars-and-bytes-io.logtalk</string> |
|---|
| 216 | </dict> |
|---|
| 217 | <dict> |
|---|
| 218 | <key>match</key> |
|---|
| 219 | <string>\b(atom_(length|c(hars|o(ncat|des)))|sub_atom|char_code|number_c(har|ode)s)(?=[(])</string> |
|---|
| 220 | <key>name</key> |
|---|
| 221 | <string>support.function.atom-term-processing.logtalk</string> |
|---|
| 222 | </dict> |
|---|
| 223 | <dict> |
|---|
| 224 | <key>match</key> |
|---|
| 225 | <string>\b(var|atom(ic)?|integer|float|compound|n(onvar|umber))(?=[(])</string> |
|---|
| 226 | <key>name</key> |
|---|
| 227 | <string>support.function.term-testing.logtalk</string> |
|---|
| 228 | </dict> |
|---|
| 229 | <dict> |
|---|
| 230 | <key>match</key> |
|---|
| 231 | <string>\b(read(_term)?|write(q|_(canonical|term))?|(current_)?(char_conversion|op))(?=[(])</string> |
|---|
| 232 | <key>name</key> |
|---|
| 233 | <string>support.function.term-io.logtalk</string> |
|---|
| 234 | </dict> |
|---|
| 235 | <dict> |
|---|
| 236 | <key>match</key> |
|---|
| 237 | <string>\b(arg|copy_term|functor)(?=[(])</string> |
|---|
| 238 | <key>name</key> |
|---|
| 239 | <string>support.function.term-creation-and-decomposition.logtalk</string> |
|---|
| 240 | </dict> |
|---|
| 241 | <dict> |
|---|
| 242 | <key>match</key> |
|---|
| 243 | <string>\b(unify_with_occurs_check)(?=[(])</string> |
|---|
| 244 | <key>name</key> |
|---|
| 245 | <string>support.function.term-unification.logtalk</string> |
|---|
| 246 | </dict> |
|---|
| 247 | <dict> |
|---|
| 248 | <key>match</key> |
|---|
| 249 | <string>\b((se|curren)t_(in|out)put|open|close|flush_output|stream_property|at_end_of_stream|set_stream_position)(?=[(])</string> |
|---|
| 250 | <key>name</key> |
|---|
| 251 | <string>support.function.stream-selection-and-control.logtalk</string> |
|---|
| 252 | </dict> |
|---|
| 253 | <dict> |
|---|
| 254 | <key>match</key> |
|---|
| 255 | <string>\b(flush_output|at_end_of_stream)\b</string> |
|---|
| 256 | <key>name</key> |
|---|
| 257 | <string>support.function.stream-selection-and-control.logtalk</string> |
|---|
| 258 | </dict> |
|---|
| 259 | <dict> |
|---|
| 260 | <key>match</key> |
|---|
| 261 | <string>\b((se|curren)t_prolog_flag)(?=[(])</string> |
|---|
| 262 | <key>name</key> |
|---|
| 263 | <string>support.function.prolog-flags.logtalk</string> |
|---|
| 264 | </dict> |
|---|
| 265 | <dict> |
|---|
| 266 | <key>match</key> |
|---|
| 267 | <string>\b(logtalk_(compile|l(ibrary_path|oad)))(?=[(])</string> |
|---|
| 268 | <key>name</key> |
|---|
| 269 | <string>support.function.compiling-and-loading.logtalk</string> |
|---|
| 270 | </dict> |
|---|
| 271 | <dict> |
|---|
| 272 | <key>match</key> |
|---|
| 273 | <string>\b((abolish|define)_events|current_event)(?=[(])</string> |
|---|
| 274 | <key>name</key> |
|---|
| 275 | <string>support.function.event-handling.logtalk</string> |
|---|
| 276 | </dict> |
|---|
| 277 | <dict> |
|---|
| 278 | <key>match</key> |
|---|
| 279 | <string>\b((curren|se)t_logtalk_flag|halt)(?=[(])</string> |
|---|
| 280 | <key>name</key> |
|---|
| 281 | <string>support.function.implementation-defined-hooks.logtalk</string> |
|---|
| 282 | </dict> |
|---|
| 283 | <dict> |
|---|
| 284 | <key>match</key> |
|---|
| 285 | <string>\b(halt)\b</string> |
|---|
| 286 | <key>name</key> |
|---|
| 287 | <string>support.function.implementation-defined-hooks.logtalk</string> |
|---|
| 288 | </dict> |
|---|
| 289 | <dict> |
|---|
| 290 | <key>match</key> |
|---|
| 291 | <string>\b((c(reate|urrent)|abolish)_(object|protocol|category))(?=[(])</string> |
|---|
| 292 | <key>name</key> |
|---|
| 293 | <string>support.function.entity-creation-and-abolishing.logtalk</string> |
|---|
| 294 | </dict> |
|---|
| 295 | <dict> |
|---|
| 296 | <key>match</key> |
|---|
| 297 | <string>\b((object|protocol|category)_property|complements_object|extends_(object|protocol|category)|imp(orts_category|lements_protocol)|(instantiat|specializ)es_class)(?=[(])</string> |
|---|
| 298 | <key>name</key> |
|---|
| 299 | <string>support.function.reflection.logtalk</string> |
|---|
| 300 | </dict> |
|---|
| 301 | <dict> |
|---|
| 302 | <key>match</key> |
|---|
| 303 | <string>\b((for|retract)all)(?=[(])</string> |
|---|
| 304 | <key>name</key> |
|---|
| 305 | <string>support.function.logtalk</string> |
|---|
| 306 | </dict> |
|---|
| 307 | <dict> |
|---|
| 308 | <key>match</key> |
|---|
| 309 | <string>\b(parameter|se(lf|nder)|this)(?=[(])</string> |
|---|
| 310 | <key>name</key> |
|---|
| 311 | <string>support.function.execution-context.logtalk</string> |
|---|
| 312 | </dict> |
|---|
| 313 | <dict> |
|---|
| 314 | <key>match</key> |
|---|
| 315 | <string>\b(a(bolish|ssert(a|z))|clause|retract(all)?)(?=[(])</string> |
|---|
| 316 | <key>name</key> |
|---|
| 317 | <string>support.function.database.logtalk</string> |
|---|
| 318 | </dict> |
|---|
| 319 | <dict> |
|---|
| 320 | <key>match</key> |
|---|
| 321 | <string>\b((bag|set)of|f(ind|or)all)(?=[(])</string> |
|---|
| 322 | <key>name</key> |
|---|
| 323 | <string>support.function.all-solutions.logtalk</string> |
|---|
| 324 | </dict> |
|---|
| 325 | <dict> |
|---|
| 326 | <key>match</key> |
|---|
| 327 | <string>\b(threaded(_(call|once|ignore|exit|peek|wait|notify))?)(?=[(])</string> |
|---|
| 328 | <key>name</key> |
|---|
| 329 | <string>support.function.multi-threading.logtalk</string> |
|---|
| 330 | </dict> |
|---|
| 331 | <dict> |
|---|
| 332 | <key>match</key> |
|---|
| 333 | <string>\b(current_predicate|predicate_property)(?=[(])</string> |
|---|
| 334 | <key>name</key> |
|---|
| 335 | <string>support.function.reflection.logtalk</string> |
|---|
| 336 | </dict> |
|---|
| 337 | <dict> |
|---|
| 338 | <key>match</key> |
|---|
| 339 | <string>\b(before|after)(?=[(])</string> |
|---|
| 340 | <key>name</key> |
|---|
| 341 | <string>support.function.event-handler.logtalk</string> |
|---|
| 342 | </dict> |
|---|
| 343 | <dict> |
|---|
| 344 | <key>match</key> |
|---|
| 345 | <string>\b(expand_(goal|term)|(goal|term)_expansion|phrase)(?=[(])</string> |
|---|
| 346 | <key>name</key> |
|---|
| 347 | <string>support.function.grammar-rule.logtalk</string> |
|---|
| 348 | </dict> |
|---|
| 349 | <dict> |
|---|
| 350 | <key>begin</key> |
|---|
| 351 | <string>'</string> |
|---|
| 352 | <key>beginCaptures</key> |
|---|
| 353 | <dict> |
|---|
| 354 | <key>0</key> |
|---|
| 355 | <dict> |
|---|
| 356 | <key>name</key> |
|---|
| 357 | <string>punctuation.definition.string.begin.logtalk</string> |
|---|
| 358 | </dict> |
|---|
| 359 | </dict> |
|---|
| 360 | <key>end</key> |
|---|
| 361 | <string>'</string> |
|---|
| 362 | <key>endCaptures</key> |
|---|
| 363 | <dict> |
|---|
| 364 | <key>0</key> |
|---|
| 365 | <dict> |
|---|
| 366 | <key>name</key> |
|---|
| 367 | <string>punctuation.definition.string.end.logtalk</string> |
|---|
| 368 | </dict> |
|---|
| 369 | </dict> |
|---|
| 370 | <key>name</key> |
|---|
| 371 | <string>string.quoted.single.logtalk</string> |
|---|
| 372 | <key>patterns</key> |
|---|
| 373 | <array> |
|---|
| 374 | <dict> |
|---|
| 375 | <key>match</key> |
|---|
| 376 | <string>\\([\\abfnrtv"']|(x[a-fA-F0-9]+|[0-7]+)\\)</string> |
|---|
| 377 | <key>name</key> |
|---|
| 378 | <string>constant.character.escape.logtalk</string> |
|---|
| 379 | </dict> |
|---|
| 380 | </array> |
|---|
| 381 | </dict> |
|---|
| 382 | <dict> |
|---|
| 383 | <key>begin</key> |
|---|
| 384 | <string>"</string> |
|---|
| 385 | <key>beginCaptures</key> |
|---|
| 386 | <dict> |
|---|
| 387 | <key>0</key> |
|---|
| 388 | <dict> |
|---|
| 389 | <key>name</key> |
|---|
| 390 | <string>punctuation.definition.string.begin.logtalk</string> |
|---|
| 391 | </dict> |
|---|
| 392 | </dict> |
|---|
| 393 | <key>end</key> |
|---|
| 394 | <string>"</string> |
|---|
| 395 | <key>endCaptures</key> |
|---|
| 396 | <dict> |
|---|
| 397 | <key>0</key> |
|---|
| 398 | <dict> |
|---|
| 399 | <key>name</key> |
|---|
| 400 | <string>punctuation.definition.string.end.logtalk</string> |
|---|
| 401 | </dict> |
|---|
| 402 | </dict> |
|---|
| 403 | <key>name</key> |
|---|
| 404 | <string>string.quoted.double.logtalk</string> |
|---|
| 405 | <key>patterns</key> |
|---|
| 406 | <array> |
|---|
| 407 | <dict> |
|---|
| 408 | <key>match</key> |
|---|
| 409 | <string>\\.</string> |
|---|
| 410 | <key>name</key> |
|---|
| 411 | <string>constant.character.escape.logtalk</string> |
|---|
| 412 | </dict> |
|---|
| 413 | </array> |
|---|
| 414 | </dict> |
|---|
| 415 | <dict> |
|---|
| 416 | <key>match</key> |
|---|
| 417 | <string>\b(0b[0-1]+|0o[0-7]+|0x\h+)\b</string> |
|---|
| 418 | <key>name</key> |
|---|
| 419 | <string>constant.numeric.logtalk</string> |
|---|
| 420 | </dict> |
|---|
| 421 | <dict> |
|---|
| 422 | <key>match</key> |
|---|
| 423 | <string>\b(0'.|0''|0'")</string> |
|---|
| 424 | <key>name</key> |
|---|
| 425 | <string>constant.numeric.logtalk</string> |
|---|
| 426 | </dict> |
|---|
| 427 | <dict> |
|---|
| 428 | <key>match</key> |
|---|
| 429 | <string>\b(\d+\.?\d*((e|E)(\+|-)?\d+)?)\b</string> |
|---|
| 430 | <key>name</key> |
|---|
| 431 | <string>constant.numeric.logtalk</string> |
|---|
| 432 | </dict> |
|---|
| 433 | <dict> |
|---|
| 434 | <key>match</key> |
|---|
| 435 | <string>\b([A-Z_][A-Za-z0-9_]*)\b</string> |
|---|
| 436 | <key>name</key> |
|---|
| 437 | <string>variable.other.logtalk</string> |
|---|
| 438 | </dict> |
|---|
| 439 | </array> |
|---|
| 440 | <key>scopeName</key> |
|---|
| 441 | <string>source.logtalk</string> |
|---|
| 442 | <key>uuid</key> |
|---|
| 443 | <string>C11FA1F2-6EDB-11D9-8798-000A95DAA580</string> |
|---|
| 444 | </dict> |
|---|
| 445 | </plist> |
|---|