-
Notifications
You must be signed in to change notification settings - Fork 0
/
SourcePub.tmLanguage
165 lines (165 loc) · 6.04 KB
/
SourcePub.tmLanguage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>sourcepub</string>
</array>
<key>foldingStartMarker</key>
<string>^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$</string>
<key>foldingStopMarker</key>
<string>^\s*\}</string>
<key>name</key>
<string>SourcePub</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\b(break|case|cload|continue|def|elif|else|empty|exit|for|globals|if|include|lambda|load|locals|null|print|return|switch|universals|while)\b</string>
<key>name</key>
<string>keyword</string>
</dict>
<dict>
<key>match</key>
<string>([a-zA-Z_?.$][\w?.$]*)\.([a-zA-Z_?.$][\w?.$]*)\s*(=)\s*(lambda)\s*(\()(.*?)(\))</string>
<key>name</key>
<string>lambda</string>
</dict>
<dict>
<key>match</key>
<string>([a-zA-Z_?$][\w?$]*)\s*(=)\s*(lambda)\s*(\()(.*?)(\))</string>
<key>name</key>
<string>lambda</string>
</dict>
<dict>
<key>match</key>
<string>\b([a-zA-Z_?.$][\w?.$]*)\s*:\s*\b(lambda)?\s*(\()(.*?)(\))</string>
<key>name</key>
<string>lambda</string>
</dict>
<!-- rfn3 -->
<dict>
<key>match</key>
<string>\b(append|bind|bitwise_and|bitwise_leftshift|bitwise_or|bitwise_rightshift|bitwise_xor|breadcrumb|ceil|cmp|cmp_float|contains|copy|days_from_now|decorate|default|documentation|dump_env|enable_wss|enumerate|eval_location|exp|floor|fork|format_float|format_int|hidden_escape|html_escape|import|index_of|int|internal_dump|isnull|items|join|json2pub|json_escape|keys|len|list|localtime|log|logwarn|lookup|map|match|now|okws_version_int|okws_version_str|pop_front|pow|rand|randsel|range|raw|remove|replace|reverse|round|search|sha1|shotgun|shuffle|sleep|sort|sort2|splice|split|split2|sqrt|stat_file|str|strip|strptime|substr|tag_escape|time_format|time_from_now|tolower|toupper|type|uint|unbind|url_escape|url_unescape|utf8_fix|values|version_int|version_str|warn|warn_trace|wss_filter)\b</string>
<key>name</key>
<string>support.function</string>
</dict>
<!-- okclib -->
<dict>
<key>match</key>
<string>\b(aliasify|bit_set|br_to_newline|cents_to_dollars|commaify|debug|float|get_distance|get_exp_group|gum_hex|hash_password|hex|is_cupid_ip|is_staff|jsmin|json_uber_filter|json_uber_filter_lite|json_uber_lite|money|name_to_id|newline_to_br|pluralize|regex_replace|regexp_replace|remove_brackets_amp|sfs_hash|strip_html|strip_html_dutil|strip_html_preserve_brs|strip_newline|tidy|unescape_html_entities|utf8_fix)\b</string>
<key>name</key>
<string>support.function</string>
</dict>
<!-- modlib -->
<dict>
<key>match</key>
<string>\b(armor64|auto_login_link|check_authdata|config_object|dearmor64|email_notifications_types|filter_user_lazy|filter_wiw|filter_wiw_reciprocal|generate_new_quivers|get_first_contact_time|get_gns_queue|get_gns_queues|get_ip_info|get_match_filters|get_match_percentages|get_quiver_excludes|get_quiver_filters|get_quiver_matches|get_uber|get_ubers|get_user_rating|gns_inject_email|gns_lookup_emails_for_pair|gns_lookup_emails_for_receiver|gns_lookup_emails_for_sender|gns_reset|gum_get_ps|id_to_name|im_filter|make_authdata|modify_uidal|other_settings|pubAndSend3|pubAndSend4|screenname_check|sookie_hash|sookie_load|sookie_update|superfilter|unsub_link|verify_password)\b</string>
<key>name</key>
<string>support.function</string>
</dict>
<!-- sharedlib -->
<dict>
<key>match</key>
<string>\b(dsdc_get|dsdc_put|dsdl_acquire|dsdl_release|get_experiment_group|gm_time_format|http_get|okwsmstime|okwstsnow|updateStats)\b</string>
<key>name</key>
<string>support.function</string>
</dict>
<!-- okevents -->
<dict>
<key>match</key>
<string>\b(getBestEvents|getCashedTransactions|getCashedTransactionsByEventid|getEventInfo|getEventJournalEntries|getEventsInfo|getLastNJournalEntries|getMembershipInfo|getStaleJournalEntries|getUserEventids)\b</string>
<key>name</key>
<string>support.function</string>
</dict>
<!-- devicelib -->
<dict>
<key>match</key>
<string>\b(pub_and_send_push)\b</string>
<key>name</key>
<string>support.function</string>
</dict>
<!-- msglib -->
<dict>
<key>match</key>
<string>\b(is_mbox_full)\b</string>
<key>name</key>
<string>support.function</string>
</dict>
<!-- uberlib -->
<dict>
<key>match</key>
<string>\b(armor64|put_uber_int_attribute|put_uber_misc_bit|put_uber_string_attribute)\b</string>
<key>name</key>
<string>support.function</string>
</dict>
<!-- moneylib -->
<dict>
<key>match</key>
<string>\b(addCustomer|captureTransaction|deleteCustomer|getBillingInfo|money_errors|refundTransaction|runCustomerTransaction|types|updateCustomer|usaepay_host|voidTransaction)\b</string>
<key>name</key>
<string>support.function</string>
</dict>
<!-- okmail -->
<dict>
<key>match</key>
<string>\b(armor64)\b</string>
<key>name</key>
<string>support.function</string>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment</string>
</dict>
<dict>
<key>match</key>
<string>(//).*?($\n?|(?=\?>))</string>
<key>name</key>
<string>comment</string>
</dict>
<dict>
<key>begin</key>
<string>"</string>
<key>end</key>
<string>"</string>
<key>name</key>
<string>string</string>
</dict>
<dict>
<key>begin</key>
<string>'</string>
<key>end</key>
<string>'</string>
<key>name</key>
<string>string</string>
</dict>
<dict>
<key>match</key>
<string>\(|\)</string>
<key>name</key>
<string>meta.brace.round</string>
</dict>
<dict>
<key>match</key>
<string>\{|\}</string>
<key>name</key>
<string>meta.brace.curly</string>
</dict>
<dict>
<key>match</key>
<string>\+|\-|<|>|\|\||&&|=</string>
<key>name</key>
<string>keyword.operator</string>
</dict>
</array>
<key>scopeName</key>
<string>source.pub</string>
<key>uuid</key>
<string>009FA760-AB97-11E1-AFA6-0800200C9A66</string>
</dict>
</plist>