| 1 |
|
| 2 |
|
| 3 |
[ |
| 4 |
"." |
| 5 |
"@" |
| 6 |
"**" |
| 7 |
"+" |
| 8 |
"-" |
| 9 |
"~" |
| 10 |
"*" |
| 11 |
"/" |
| 12 |
"//" |
| 13 |
"/<" |
| 14 |
"/>" |
| 15 |
"div" |
| 16 |
"mod" |
| 17 |
"rem" |
| 18 |
">>" |
| 19 |
"<<" |
| 20 |
"/\\" |
| 21 |
"^" |
| 22 |
"\\/" |
| 23 |
".." |
| 24 |
"++" |
| 25 |
"=" |
| 26 |
"!=" |
| 27 |
":=" |
| 28 |
"==" |
| 29 |
"!==" |
| 30 |
"=:=" |
| 31 |
"<" |
| 32 |
"=<" |
| 33 |
"<=" |
| 34 |
">" |
| 35 |
">=" |
| 36 |
"::" |
| 37 |
"in" |
| 38 |
"notin" |
| 39 |
"=.." |
| 40 |
"#=" |
| 41 |
"#!=" |
| 42 |
"#<" |
| 43 |
"#=<" |
| 44 |
"#<=" |
| 45 |
"#>" |
| 46 |
"#>=" |
| 47 |
"@<" |
| 48 |
"@=<" |
| 49 |
"@<=" |
| 50 |
"@>" |
| 51 |
"@>=" |
| 52 |
"#~" |
| 53 |
"#/\\" |
| 54 |
"#^" |
| 55 |
"#\\/" |
| 56 |
"#=>" |
| 57 |
"#<=>" |
| 58 |
"not" |
| 59 |
"once" |
| 60 |
"\\+" |
| 61 |
"&&" |
| 62 |
";" |
| 63 |
"||" |
| 64 |
] @operator |
| 65 |
|
| 66 |
[ |
| 67 |
"(" |
| 68 |
")" |
| 69 |
"[" |
| 70 |
"]" |
| 71 |
"{" |
| 72 |
"}" |
| 73 |
] @punctuation.bracket |
| 74 |
|
| 75 |
|
| 76 |
[ |
| 77 |
"do" |
| 78 |
"else" |
| 79 |
"end" |
| 80 |
"foreach" |
| 81 |
"if" |
| 82 |
"import" |
| 83 |
"in" |
| 84 |
"index" |
| 85 |
"module" |
| 86 |
"private" |
| 87 |
"table" |
| 88 |
"then" |
| 89 |
"while" |
| 90 |
"throw" |
| 91 |
"true" |
| 92 |
"false" |
| 93 |
"fail" |
| 94 |
] @keyword |
| 95 |
|
| 96 |
(predicate_definition (predicate_rule name: (atom) @function)) |
| 97 |
(predicate_definition (predicate_fact name: (atom) @function)) |
| 98 |
(function_definition (function_rule name: (atom) @function)) |
| 99 |
(function_definition (function_fact name: (atom) @function)) |
| 100 |
(actor_definition (action_rule name: (atom) @function)) |
| 101 |
(actor_definition (nonbacktrackable_predicate_rule name: (atom) @function)) |
| 102 |
|
| 103 |
(integer) @constant.numeric.integer |
| 104 |
(real) @constant.numeric.float |
| 105 |
(string) @string |
| 106 |
(comment) @comment |
| 107 |
|
| 108 |
[ |
| 109 |
"=>" |
| 110 |
"->" |
| 111 |
"$" |
| 112 |
] @punctuation.special |
| 113 |
|
| 114 |
|
| 115 |
(parameters |
| 116 |
[(variable) @variable.parameter |
| 117 |
(atom) @variable.parameter |
| 118 |
(array_expression [(variable) @variable.parameter (atom) @variable.parameter]) |
| 119 |
(list_expression [(variable) @variable.parameter (atom) @variable.parameter]) |
| 120 |
(as_pattern_expression left: [(variable) @variable.parameter (atom) @variable.parameter])]) |
| 121 |
|
| 122 |
(function_call function: (atom) @function) |
| 123 |
(dot_expression right: (atom) @function) |