]> git.r.bdr.sh - rbdr/api-notation.tmLanguage/blob - api-notation.tmLanguage
a7200de33259fe600a23ba6e4df16024d6baf42b
[rbdr/api-notation.tmLanguage] / api-notation.tmLanguage
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>
15 <string>^([a-zA-Z0-9_.]+)</string>
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>
34 <string>[ \t]*</string>
35 <key>end</key>
36 <string>\n</string>
37 <key>patterns</key>
38 <array>
39 <dict>
40 <key>include</key>
41 <string>#apiMember</string>
42 </dict>
43 <dict>
44 <key>include</key>
45 <string>#parameterList</string>
46 </dict>
47 <dict>
48 <key>include</key>
49 <string>#dataTypes</string>
50 </dict>
51 <dict>
52 <key>include</key>
53 <string>#operators</string>
54 </dict>
55 <dict>
56 <key>include</key>
57 <string>#parameters</string>
58 </dict>
59 <dict>
60 <key>include</key>
61 <string>#comment</string>
62 </dict>
63 </array>
64 </dict>
65 <dict>
66 <key>begin</key>
67 <string>^.</string>
68 <key>end</key>
69 <string>\n</string>
70 <key>patterns</key>
71 <array>
72 <dict>
73 <key>include</key>
74 <string>#comment</string>
75 </dict>
76 </array>
77 </dict>
78 </array>
79 <key>repository</key>
80 <dict>
81 <key>apiMember</key>
82 <dict>
83 <key>captures</key>
84 <dict>
85 <key>1</key>
86 <dict>
87 <key>name</key>
88 <string>keyword.control</string>
89 </dict>
90 <key>2</key>
91 <dict>
92 <key>name</key>
93 <string>variable.language</string>
94 </dict>
95 </dict>
96 <key>match</key>
97 <string>((?:&lt;\\+)|(?:&lt;\\~)|(?:&lt;\\-)|(?:\\+&gt;)|(?:\\~&gt;)|(?:\\-&gt;)|\\-|\\+|(?:::)|#)([a-zA-z0-9_]+)</string>
98 </dict>
99 <key>comment</key>
100 <dict>
101 <key>match</key>
102 <string>[ \t]*//[ \t]*.*</string>
103 <key>name</key>
104 <string>comment.line</string>
105 </dict>
106 <key>dataType</key>
107 <dict>
108 <key>match</key>
109 <string>[a-zA-Z0-9_.]+</string>
110 <key>name</key>
111 <string>support.function</string>
112 </dict>
113 <key>dataTypes</key>
114 <dict>
115 <key>begin</key>
116 <string>\\&lt;</string>
117 <key>end</key>
118 <string>\\&gt;</string>
119 <key>name</key>
120 <string>keyword.operator</string>
121 <key>patterns</key>
122 <array>
123 <dict>
124 <key>include</key>
125 <string>#dataType</string>
126 </dict>
127 <dict>
128 <key>include</key>
129 <string>#separators</string>
130 </dict>
131 </array>
132 </dict>
133 <key>operators</key>
134 <dict>
135 <key>match</key>
136 <string>(?:\\-&gt;)|(?:\\=&gt;)</string>
137 <key>name</key>
138 <string>keyword.control</string>
139 </dict>
140 <key>optionalParameter</key>
141 <dict>
142 <key>match</key>
143 <string>[a-zA-Z0-9_.]+</string>
144 <key>name</key>
145 <string>meta.separator</string>
146 </dict>
147 <key>optionalParameters</key>
148 <dict>
149 <key>begin</key>
150 <string>\\[</string>
151 <key>end</key>
152 <string>\\]</string>
153 <key>patterns</key>
154 <array>
155 <dict>
156 <key>include</key>
157 <string>#optionalParameter</string>
158 </dict>
159 </array>
160 </dict>
161 <key>parameterList</key>
162 <dict>
163 <key>begin</key>
164 <string>\\(</string>
165 <key>end</key>
166 <string>\\)</string>
167 <key>name</key>
168 <string>keyword.operator</string>
169 <key>patterns</key>
170 <array>
171 <dict>
172 <key>include</key>
173 <string>#parameters</string>
174 </dict>
175 <dict>
176 <key>include</key>
177 <string>#optionalParameters</string>
178 </dict>
179 <dict>
180 <key>include</key>
181 <string>#dataTypes</string>
182 </dict>
183 <dict>
184 <key>include</key>
185 <string>#separators</string>
186 </dict>
187 </array>
188 </dict>
189 <key>parameters</key>
190 <dict>
191 <key>match</key>
192 <string>[a-zA-Z0-9_.]+</string>
193 <key>name</key>
194 <string>string.other</string>
195 </dict>
196 <key>separators</key>
197 <dict>
198 <key>match</key>
199 <string>\\||,</string>
200 <key>name</key>
201 <string>comment.line</string>
202 </dict>
203 </dict>
204 <key>scopeName</key>
205 <string>source.api-notation</string>
206 <key>uuid</key>
207 <string>fc8dc5cf-b7aa-4b64-a665-80e8dc1b2553</string>
208 </dict>
209 </plist>