|
14 | 14 | <key>name</key>
|
15 | 15 | <string>keyword.control.fix</string>
|
16 | 16 | <key>match</key>
|
17 |
| - <string>\b(do|if|elsif|else|end)\b</string> |
| 17 | + <string>\b(do|if|elsif|else|end|unless)\b</string> |
| 18 | + <key>comment</key> |
| 19 | + <string>The fix grammar can be found here: https://github.com/metafacture/metafacture-fix/blob/master/metafix/src/main/java/org/metafacture/metafix/Fix.xtext</string> |
18 | 20 | </dict>
|
19 | 21 | <dict>
|
20 | 22 | <key>name</key>
|
21 |
| - <string>entity.name.function.morph-collectors</string> |
| 23 | + <string>entity.name.function.method.fix</string> |
22 | 24 | <key>match</key>
|
23 |
| - <string>\b(all|any|combine|choose|group|concat|none|tuples|square|range|equalsFilter|entity)\b</string> |
| 25 | + <string>\b(include|nothing|put_filemap|put_map|put_rdfmap|put_var|put_vars|add_field|array|call_macro|copy_field|format|hash|move_field|parse_text|paste|print_record|random|reject|rename|retain|set_array|set_field|set_hash|timestamp|vacuum|append|capitalize|count|downcase|filter|flatten|from_json|index|isbn|join_field|lookup|prepend|replace_all|reverse|sort_field|split_field|substring|sum|to_json|trim|uniq|upcase)\b</string> |
| 26 | + <key>comment</key> |
| 27 | + <string>The method names are taken from https://github.com/metafacture/metafacture-fix/blob/master/metafix/src/main/java/org/metafacture/metafix/FixMethod.java</string> |
24 | 28 | </dict>
|
25 | 29 | <dict>
|
26 | 30 | <key>name</key>
|
27 |
| - <string>entity.name.function.morph-functions</string> |
| 31 | + <string>support.function.conditional.fix</string> |
28 | 32 | <key>match</key>
|
29 |
| - <string>\b(regexp|substring|compose|lookup|whitelist|blacklist|replace|isbn|equals|not_equals|contains|not_contains|case|htmlanchor|trim|normalize_utf8|urlencode|split|occurence|constant|count|buffer|switch_name_value|unique|script|setreplace|timestamp|dateformat)\b</string> |
| 33 | + <string>\b(all_contain|any_contain|none_contain|str_contain|all_equal|any_equal|none_equal|str_equal|exists|in|is_contained_in|is_array|is_empty|is_false|is_hash|is_number|is_object|is_sring|is_true|all_match|any_match|none_match|str_match)\b</string> |
| 34 | + <key>comment</key> |
| 35 | + <string>The names of the conditionals are taken from https://github.com/metafacture/metafacture-fix/blob/master/metafix/src/main/java/org/metafacture/metafix/FixConditional.java</string> |
30 | 36 | </dict>
|
31 | 37 | <dict>
|
32 | 38 | <key>name</key>
|
33 |
| - <string>entity.name.function.morph-maps</string> |
| 39 | + <string>storage.type.bind.fix</string> |
34 | 40 | <key>match</key>
|
35 |
| - <string>\b(filemap|restmap|sqlmap|jndisqlmap)\b</string> |
| 41 | + <string>\b(list|list_as|once|put_macro)\b</string> |
| 42 | + <key>comment</key> |
| 43 | + <string>The names of the fix binds are taken from https://github.com/metafacture/metafacture-fix/blob/master/metafix/src/main/java/org/metafacture/metafix/FixBind.java</string> |
36 | 44 | </dict>
|
37 | 45 | <dict>
|
38 | 46 | <key>name</key>
|
39 |
| - <string>entity.name.function.fix-functions</string> |
40 |
| - <key>match</key> |
41 |
| - <string>\b(map|add_field|lookup|array|replace_all)\b</string> |
42 |
| - </dict> |
43 |
| - <dict> |
44 |
| - <key>name</key> |
45 |
| - <string>variable.parameter.morph-collector-parameters</string> |
46 |
| - <key>match</key> |
47 |
| - <string>\b(flushWith|reset|sameEntity|delimiter|name|prefix|postfix|minN|pattern|in|with):</string> |
48 |
| - </dict> |
49 |
| - <dict> |
50 |
| - <key>name</key> |
51 |
| - <string>entity.name.type.fix</string> |
52 |
| - <key>match</key> |
53 |
| - <string>\b(type|string|int|boolean)\b</string> |
54 |
| - </dict> |
55 |
| - <dict> |
56 |
| - <key>name</key> |
57 |
| - <string>comment.block</string> |
| 47 | + <string>comment.line.number-sign.fix</string> |
58 | 48 | <key>begin</key>
|
59 |
| - <string>/\*</string> |
| 49 | + <string>#</string> |
60 | 50 | <key>end</key>
|
61 |
| - <string>\*/</string> |
| 51 | + <string>\n</string> |
62 | 52 | </dict>
|
63 | 53 | <dict>
|
64 | 54 | <key>name</key>
|
65 |
| - <string>string.quoted.single</string> |
| 55 | + <string>string.quoted.single.fix</string> |
66 | 56 | <key>begin</key>
|
67 | 57 | <string>'</string>
|
68 | 58 | <key>end</key>
|
69 | 59 | <string>'</string>
|
70 | 60 | </dict>
|
71 | 61 | <dict>
|
72 | 62 | <key>name</key>
|
73 |
| - <string>string.quoted.double</string> |
| 63 | + <string>string.quoted.double.fix</string> |
74 | 64 | <key>begin</key>
|
75 | 65 | <string>"</string>
|
76 | 66 | <key>end</key>
|
|
0 commit comments