]>
Commit | Line | Data |
---|---|---|
28681b37 BB |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!DOCTYPE plist PUBLIC "-//Apple//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>api</string> | |
8 | </array> | |
9 | <key>name</key> | |
10 | <string>API Notation</string> | |
11 | <key>patterns</key> | |
12 | <array> | |
13 | <dict> | |
14 | <key>begin</key> | |
3421ec3d | 15 | <string>([a-zA-Z0-9_.]+)</string> |
28681b37 BB |
16 | <key>end</key> |
17 | <string>\n</string> | |
18 | <key>name</key> | |
19 | <string>constant.language</string> | |
20 | <key>patterns</key> | |
21 | <array> | |
22 | <dict> | |
23 | <key>include</key> | |
24 | <string>#dataTypes</string> | |
25 | </dict> | |
26 | <dict> | |
27 | <key>include</key> | |
28 | <string>#comment</string> | |
29 | </dict> | |
30 | </array> | |
31 | </dict> | |
32 | <dict> | |
33 | <key>begin</key> | |
3421ec3d BB |
34 | <string>^//.*</string> |
35 | <key>end</key> | |
36 | <string>\n</string> | |
37 | <key>name</key> | |
38 | <string>comment.line</string> | |
39 | </dict> | |
40 | <dict> | |
41 | <key>begin</key> | |
42 | <string>[ \t]+</string> | |
28681b37 BB |
43 | <key>end</key> |
44 | <string>\n</string> | |
45 | <key>patterns</key> | |
46 | <array> | |
47 | <dict> | |
48 | <key>include</key> | |
49 | <string>#apiMember</string> | |
50 | </dict> | |
51 | <dict> | |
52 | <key>include</key> | |
53 | <string>#parameterList</string> | |
54 | </dict> | |
55 | <dict> | |
56 | <key>include</key> | |
57 | <string>#dataTypes</string> | |
58 | </dict> | |
59 | <dict> | |
60 | <key>include</key> | |
61 | <string>#operators</string> | |
62 | </dict> | |
63 | <dict> | |
64 | <key>include</key> | |
65 | <string>#parameters</string> | |
66 | </dict> | |
67 | <dict> | |
68 | <key>include</key> | |
69 | <string>#comment</string> | |
70 | </dict> | |
71 | </array> | |
72 | </dict> | |
73 | <dict> | |
74 | <key>begin</key> | |
75 | <string>^.</string> | |
76 | <key>end</key> | |
77 | <string>\n</string> | |
78 | <key>patterns</key> | |
79 | <array> | |
80 | <dict> | |
81 | <key>include</key> | |
82 | <string>#comment</string> | |
83 | </dict> | |
84 | </array> | |
85 | </dict> | |
86 | </array> | |
87 | <key>repository</key> | |
88 | <dict> | |
89 | <key>apiMember</key> | |
90 | <dict> | |
91 | <key>captures</key> | |
92 | <dict> | |
93 | <key>1</key> | |
94 | <dict> | |
95 | <key>name</key> | |
96 | <string>keyword.control</string> | |
97 | </dict> | |
98 | <key>2</key> | |
99 | <dict> | |
100 | <key>name</key> | |
101 | <string>variable.language</string> | |
102 | </dict> | |
103 | </dict> | |
104 | <key>match</key> | |
3421ec3d | 105 | <string>((?:<\+)|(?:<\~)|(?:<\-)|(?:\+>)|(?:\~>)|(?:\->)|\-|\+|(?:::)|#)([a-zA-z0-9_]+)</string> |
28681b37 BB |
106 | </dict> |
107 | <key>comment</key> | |
108 | <dict> | |
109 | <key>match</key> | |
110 | <string>[ \t]*//[ \t]*.*</string> | |
111 | <key>name</key> | |
112 | <string>comment.line</string> | |
113 | </dict> | |
114 | <key>dataType</key> | |
115 | <dict> | |
116 | <key>match</key> | |
117 | <string>[a-zA-Z0-9_.]+</string> | |
118 | <key>name</key> | |
119 | <string>support.function</string> | |
120 | </dict> | |
121 | <key>dataTypes</key> | |
122 | <dict> | |
123 | <key>begin</key> | |
3421ec3d | 124 | <string>\<</string> |
28681b37 | 125 | <key>end</key> |
3421ec3d | 126 | <string>\></string> |
28681b37 BB |
127 | <key>name</key> |
128 | <string>keyword.operator</string> | |
129 | <key>patterns</key> | |
130 | <array> | |
131 | <dict> | |
132 | <key>include</key> | |
133 | <string>#dataType</string> | |
134 | </dict> | |
135 | <dict> | |
136 | <key>include</key> | |
137 | <string>#separators</string> | |
138 | </dict> | |
139 | </array> | |
140 | </dict> | |
141 | <key>operators</key> | |
142 | <dict> | |
143 | <key>match</key> | |
3421ec3d | 144 | <string>(?:\->)|(?:\=>)</string> |
28681b37 BB |
145 | <key>name</key> |
146 | <string>keyword.control</string> | |
147 | </dict> | |
148 | <key>optionalParameter</key> | |
149 | <dict> | |
150 | <key>match</key> | |
151 | <string>[a-zA-Z0-9_.]+</string> | |
152 | <key>name</key> | |
3421ec3d | 153 | <string>comment.line</string> |
28681b37 BB |
154 | </dict> |
155 | <key>optionalParameters</key> | |
156 | <dict> | |
157 | <key>begin</key> | |
3421ec3d | 158 | <string>\[</string> |
28681b37 | 159 | <key>end</key> |
3421ec3d | 160 | <string>\]</string> |
28681b37 BB |
161 | <key>patterns</key> |
162 | <array> | |
163 | <dict> | |
164 | <key>include</key> | |
165 | <string>#optionalParameter</string> | |
166 | </dict> | |
167 | </array> | |
168 | </dict> | |
169 | <key>parameterList</key> | |
170 | <dict> | |
171 | <key>begin</key> | |
3421ec3d | 172 | <string>\(</string> |
28681b37 | 173 | <key>end</key> |
3421ec3d | 174 | <string>\)</string> |
28681b37 BB |
175 | <key>name</key> |
176 | <string>keyword.operator</string> | |
177 | <key>patterns</key> | |
178 | <array> | |
179 | <dict> | |
180 | <key>include</key> | |
181 | <string>#parameters</string> | |
182 | </dict> | |
183 | <dict> | |
184 | <key>include</key> | |
185 | <string>#optionalParameters</string> | |
186 | </dict> | |
187 | <dict> | |
188 | <key>include</key> | |
189 | <string>#dataTypes</string> | |
190 | </dict> | |
191 | <dict> | |
192 | <key>include</key> | |
193 | <string>#separators</string> | |
194 | </dict> | |
195 | </array> | |
196 | </dict> | |
197 | <key>parameters</key> | |
198 | <dict> | |
199 | <key>match</key> | |
200 | <string>[a-zA-Z0-9_.]+</string> | |
201 | <key>name</key> | |
202 | <string>string.other</string> | |
203 | </dict> | |
204 | <key>separators</key> | |
205 | <dict> | |
206 | <key>match</key> | |
3421ec3d | 207 | <string>\||,</string> |
28681b37 BB |
208 | <key>name</key> |
209 | <string>comment.line</string> | |
210 | </dict> | |
211 | </dict> | |
212 | <key>scopeName</key> | |
213 | <string>source.api-notation</string> | |
214 | <key>uuid</key> | |
215 | <string>fc8dc5cf-b7aa-4b64-a665-80e8dc1b2553</string> | |
216 | </dict> | |
217 | </plist> |