coffee-script 0.3.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,24 +0,0 @@
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>name</key>
6
- <string>comments</string>
7
- <key>scope</key>
8
- <string>source.coffee</string>
9
- <key>settings</key>
10
- <dict>
11
- <key>shellVariables</key>
12
- <array>
13
- <dict>
14
- <key>name</key>
15
- <string>TM_COMMENT_START</string>
16
- <key>value</key>
17
- <string># </string>
18
- </dict>
19
- </array>
20
- </dict>
21
- <key>uuid</key>
22
- <string>0A92C6F6-4D73-4859-B38C-4CC19CBC191F</string>
23
- </dict>
24
- </plist>
@@ -1,361 +0,0 @@
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>comment</key>
6
- <string>CoffeeScript Syntax: version 1</string>
7
- <key>fileTypes</key>
8
- <array>
9
- <string>coffee</string>
10
- </array>
11
- <key>name</key>
12
- <string>CoffeeScript</string>
13
- <key>foldingStartMarker</key>
14
- <string>^.*[:=] \{[^\}]*$</string>
15
- <key>foldingStopMarker</key>
16
- <string>\s*\}</string>
17
- <key>patterns</key>
18
- <array>
19
- <dict>
20
- <key>captures</key>
21
- <dict>
22
- <key>1</key>
23
- <dict>
24
- <key>name</key>
25
- <string>variable.parameter.function.coffee</string>
26
- </dict>
27
- <key>2</key>
28
- <dict>
29
- <key>name</key>
30
- <string>variable.parameter.function.coffee</string>
31
- </dict>
32
- <key>4</key>
33
- <dict>
34
- <key>name</key>
35
- <string>variable.parameter.function.coffee</string>
36
- </dict>
37
- <key>5</key>
38
- <dict>
39
- <key>name</key>
40
- <string>storage.type.function.coffee</string>
41
- </dict>
42
- </dict>
43
- <key>comment</key>
44
- <string>match stuff like: a -&gt; … </string>
45
- <key>match</key>
46
- <string>(\()([a-zA-Z0-9_?.$]*(,\s*[a-zA-Z0-9_?.$]+)*)(\))\s*((=|-)&gt;)</string>
47
- <key>name</key>
48
- <string>meta.inline.function.coffee</string>
49
- </dict>
50
- <dict>
51
- <key>captures</key>
52
- <dict>
53
- <key>1</key>
54
- <dict>
55
- <key>name</key>
56
- <string>keyword.operator.new.coffee</string>
57
- </dict>
58
- <key>2</key>
59
- <dict>
60
- <key>name</key>
61
- <string>entity.name.type.instance.coffee</string>
62
- </dict>
63
- </dict>
64
- <key>match</key>
65
- <string>(new)\s+(\w+(?:\.\w*)?)</string>
66
- <key>name</key>
67
- <string>meta.class.instance.constructor</string>
68
- </dict>
69
- <dict>
70
- <key>match</key>
71
- <string>\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\.[0-9]+)?(e[+\-]?[0-9]+)?))\b</string>
72
- <key>name</key>
73
- <string>constant.numeric.coffee</string>
74
- </dict>
75
- <dict>
76
- <key>match</key>
77
- <string>(@)[a-zA-Z_$]\w*</string>
78
- <key>name</key>
79
- <string>variable.other.readwrite.instance.coffee</string>
80
- </dict>
81
- <dict>
82
- <key>name</key>
83
- <string>string.quoted.heredoc.coffee</string>
84
- <key>begin</key>
85
- <string>("""|''')</string>
86
- <key>end</key>
87
- <string>("""|''')</string>
88
- <key>beginCaptures</key>
89
- <dict>
90
- <key>0</key>
91
- <dict>
92
- <key>name</key>
93
- <string>punctuation.definition.string.begin.coffee</string>
94
- </dict>
95
- </dict>
96
- <key>endCaptures</key>
97
- <dict>
98
- <key>0</key>
99
- <dict>
100
- <key>name</key>
101
- <string>punctuation.definition.string.end.coffee</string>
102
- </dict>
103
- </dict>
104
- </dict>
105
- <dict>
106
- <key>begin</key>
107
- <string>'</string>
108
- <key>beginCaptures</key>
109
- <dict>
110
- <key>0</key>
111
- <dict>
112
- <key>name</key>
113
- <string>punctuation.definition.string.begin.coffee</string>
114
- </dict>
115
- </dict>
116
- <key>end</key>
117
- <string>'</string>
118
- <key>endCaptures</key>
119
- <dict>
120
- <key>0</key>
121
- <dict>
122
- <key>name</key>
123
- <string>punctuation.definition.string.end.coffee</string>
124
- </dict>
125
- </dict>
126
- <key>name</key>
127
- <string>string.quoted.single.coffee</string>
128
- <key>patterns</key>
129
- <array>
130
- <dict>
131
- <key>match</key>
132
- <string>\\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)</string>
133
- <key>name</key>
134
- <string>constant.character.escape.coffee</string>
135
- </dict>
136
- </array>
137
- </dict>
138
- <dict>
139
- <key>begin</key>
140
- <string>"</string>
141
- <key>beginCaptures</key>
142
- <dict>
143
- <key>0</key>
144
- <dict>
145
- <key>name</key>
146
- <string>punctuation.definition.string.begin.coffee</string>
147
- </dict>
148
- </dict>
149
- <key>end</key>
150
- <string>"</string>
151
- <key>endCaptures</key>
152
- <dict>
153
- <key>0</key>
154
- <dict>
155
- <key>name</key>
156
- <string>punctuation.definition.string.end.coffee</string>
157
- </dict>
158
- </dict>
159
- <key>name</key>
160
- <string>string.quoted.double.coffee</string>
161
- <key>patterns</key>
162
- <array>
163
- <dict>
164
- <key>match</key>
165
- <string>\\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)</string>
166
- <key>name</key>
167
- <string>constant.character.escape.coffee</string>
168
- </dict>
169
- </array>
170
- </dict>
171
- <dict>
172
- <key>begin</key>
173
- <string>`</string>
174
- <key>beginCaptures</key>
175
- <dict>
176
- <key>0</key>
177
- <dict>
178
- <key>name</key>
179
- <string>punctuation.definition.string.begin.coffee</string>
180
- </dict>
181
- </dict>
182
- <key>end</key>
183
- <string>`</string>
184
- <key>endCaptures</key>
185
- <dict>
186
- <key>0</key>
187
- <dict>
188
- <key>name</key>
189
- <string>punctuation.definition.string.end.coffee</string>
190
- </dict>
191
- </dict>
192
- <key>name</key>
193
- <string>string.quoted.script.coffee</string>
194
- <key>patterns</key>
195
- <array>
196
- <dict>
197
- <key>match</key>
198
- <string>\\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)</string>
199
- <key>name</key>
200
- <string>constant.character.escape.coffee</string>
201
- </dict>
202
- </array>
203
- </dict>
204
- <dict>
205
- <key>captures</key>
206
- <dict>
207
- <key>1</key>
208
- <dict>
209
- <key>name</key>
210
- <string>punctuation.definition.comment.coffee</string>
211
- </dict>
212
- </dict>
213
- <key>match</key>
214
- <string>(#).*$\n?</string>
215
- <key>name</key>
216
- <string>comment.line.coffee</string>
217
- </dict>
218
- <dict>
219
- <key>begin</key>
220
- <string>(?&lt;=[=(:]|^|return)\s*(/)(?![/*+{}?])</string>
221
- <key>beginCaptures</key>
222
- <dict>
223
- <key>1</key>
224
- <dict>
225
- <key>name</key>
226
- <string>punctuation.definition.string.begin.coffee</string>
227
- </dict>
228
- </dict>
229
- <key>end</key>
230
- <string>(/)[igm]*</string>
231
- <key>endCaptures</key>
232
- <dict>
233
- <key>1</key>
234
- <dict>
235
- <key>name</key>
236
- <string>punctuation.definition.string.end.coffee</string>
237
- </dict>
238
- </dict>
239
- <key>name</key>
240
- <string>string.regexp.coffee</string>
241
- <key>patterns</key>
242
- <array>
243
- <dict>
244
- <key>match</key>
245
- <string>\\.</string>
246
- <key>name</key>
247
- <string>constant.character.escape.coffee</string>
248
- </dict>
249
- </array>
250
- </dict>
251
- <dict>
252
- <key>match</key>
253
- <string>\b(break|by|catch|continue|else|finally|for|in|of|if|return|switch|then|throw|try|unless|when|while)\b</string>
254
- <key>name</key>
255
- <string>keyword.control.coffee</string>
256
- </dict>
257
- <dict>
258
- <key>match</key>
259
- <string>\b([a-zA-Z$_](\w|\$|:|\.)*\s*(?=\:))</string>
260
- <key>name</key>
261
- <string>variable.assignment.coffee</string>
262
- <key>captures</key>
263
- <dict>
264
- <key>1</key>
265
- <dict>
266
- <key>name</key>
267
- <string>entity.name.function.coffee</string>
268
- </dict>
269
- </dict>
270
- </dict>
271
- <dict>
272
- <key>match</key>
273
- <string>\b(true|on|yes)\b</string>
274
- <key>name</key>
275
- <string>constant.language.boolean.true.coffee</string>
276
- </dict>
277
- <dict>
278
- <key>match</key>
279
- <string>\b(false|off|no)\b</string>
280
- <key>name</key>
281
- <string>constant.language.boolean.false.coffee</string>
282
- </dict>
283
- <dict>
284
- <key>match</key>
285
- <string>\bnull\b</string>
286
- <key>name</key>
287
- <string>constant.language.null.coffee</string>
288
- </dict>
289
- <dict>
290
- <key>match</key>
291
- <string>\b(super|this|extends)\b</string>
292
- <key>name</key>
293
- <string>variable.language.coffee</string>
294
- </dict>
295
- <dict>
296
- <key>match</key>
297
- <string>\b(debugger|\\)\b</string>
298
- <key>name</key>
299
- <string>keyword.other.coffee</string>
300
- </dict>
301
- <dict>
302
- <key>match</key>
303
- <string>(=|-)&gt;</string>
304
- <key>name</key>
305
- <string>storage.type.function.coffee</string>
306
- </dict>
307
- <dict>
308
- <key>match</key>
309
- <string>!|%|&amp;|\*|\/|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|&lt;=|&gt;=|&lt;&lt;=|&gt;&gt;=|&gt;&gt;&gt;=|&lt;&gt;|&lt;|&gt;|!|&amp;&amp;|\?|\|\||\:|\*=|(?&lt;!\()/=|%=|\+=|\-=|&amp;=|\^=|\b(instanceof|new|delete|typeof|and|or|is|isnt|not)\b</string>
310
- <key>name</key>
311
- <string>keyword.operator.coffee</string>
312
- </dict>
313
- <dict>
314
- <key>match</key>
315
- <string>\b(Infinity|NaN|undefined)\b</string>
316
- <key>name</key>
317
- <string>constant.language.coffee</string>
318
- </dict>
319
- <dict>
320
- <key>match</key>
321
- <string>\;</string>
322
- <key>name</key>
323
- <string>punctuation.terminator.statement.coffee</string>
324
- </dict>
325
- <dict>
326
- <key>match</key>
327
- <string>,[ |\t]*</string>
328
- <key>name</key>
329
- <string>meta.delimiter.object.comma.coffee</string>
330
- </dict>
331
- <dict>
332
- <key>match</key>
333
- <string>\.</string>
334
- <key>name</key>
335
- <string>meta.delimiter.method.period.coffee</string>
336
- </dict>
337
- <dict>
338
- <key>match</key>
339
- <string>\{|\}</string>
340
- <key>name</key>
341
- <string>meta.brace.curly.coffee</string>
342
- </dict>
343
- <dict>
344
- <key>match</key>
345
- <string>\(|\)</string>
346
- <key>name</key>
347
- <string>meta.brace.round.coffee</string>
348
- </dict>
349
- <dict>
350
- <key>match</key>
351
- <string>\[|\]</string>
352
- <key>name</key>
353
- <string>meta.brace.square.coffee</string>
354
- </dict>
355
- </array>
356
- <key>scopeName</key>
357
- <string>source.coffee</string>
358
- <key>uuid</key>
359
- <string>5B520980-A7D5-4E10-8582-1A4C889A8DE5</string>
360
- </dict>
361
- </plist>
@@ -1,10 +0,0 @@
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>name</key>
6
- <string>CoffeeScript</string>
7
- <key>uuid</key>
8
- <string>A46E4382-F1AC-405B-8F22-65FF470F34D7</string>
9
- </dict>
10
- </plist>
@@ -1,20 +0,0 @@
1
- This folder includes rough cuts of CoffeeScript syntax highlighters for
2
- TextMate and Vim. Improvements to their lexing ability are always welcome.
3
-
4
- To install the TextMate bundle, run `bin/coffee --install-bundle`, or drop it
5
- into "~/Library/Application Support/TextMate/Bundles".
6
-
7
- To install the Vim highlighter, copy "coffee.vim" into the "syntax" directory of
8
- your vim72, and enable it in either of the following two ways:
9
-
10
- * Manually, by running `:set syntax=coffee`
11
-
12
- * Or automatically, by creating a "filetype.vim" file within "~/.vim", which
13
- contains something along these lines:
14
-
15
- if exists("did_load_filetypes")
16
- finish
17
- end
18
- augroup filetypedetect
19
- au! BufRead,BufNewFile *.coffee setfiletype coffee
20
- augroup END
@@ -1,111 +0,0 @@
1
- " Vim syntax file
2
- " Language: CoffeeScript
3
- " Maintainer: Jeff Olson <olson.jeffery@gmail.com>
4
- " URL: http://github.com/olsonjeffery
5
- " Changes: (jro) initial port from javascript
6
- " Last Change: 2006 Jun 19
7
- " Adaptation of javascript.vim syntax file (distro'd w/ vim72),
8
- " maintained by Claudio Fleiner <claudio@fleiner.com>
9
- " with updates from Scott Shattuck (ss) <ss@technicalpursuit.com>
10
-
11
- if !exists("main_syntax")
12
- if version < 600
13
- syntax clear
14
- elseif exists("b:current_syntax")
15
- finish
16
- endif
17
- let main_syntax = 'coffee'
18
- endif
19
-
20
- syn case ignore
21
-
22
- syn match coffeeLineComment "#.*" contains=@Spell,CoffeeCommentTodo
23
- syn match coffeeSpecial "\\\d\d\d\|\\."
24
- syn region coffeeStringD start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=coffeeSpecial,@htmlPreproc
25
- syn region coffeeStringS start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contains=coffeeSpecial,@htmlPreproc
26
-
27
- syn match coffeeSpecialCharacter "'\\.'"
28
- syn match coffeeNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
29
- syn region coffeeRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi]\{0,2\}\s*$+ end=+/[gi]\{0,2\}\s*[;.,)\]}]+me=e-1 contains=@htmlPreproc oneline
30
-
31
- syn match coffeePrototypeAccess "::"
32
- syn match coffeeFunction "->"
33
-
34
- syn keyword coffeeExtends extends
35
- syn keyword coffeeConditional if else switch then
36
- syn keyword coffeeRepeat while for in of
37
- syn keyword coffeeBranch break continue
38
- syn keyword coffeeOperator delete instanceof typeof
39
- syn keyword coffeeType Array Boolean Date Function Number Object String RegExp
40
- syn keyword coffeeStatement return with
41
- syn keyword coffeeBoolean true false
42
- syn keyword coffeeNull null undefined
43
- syn keyword coffeeIdentifier arguments this var
44
- syn keyword coffeeLabel case default
45
- syn keyword coffeeException try catch finally throw
46
- syn keyword coffeeMessage alert confirm prompt status
47
- syn keyword coffeeGlobal self window top parent
48
- syn keyword coffeeMember document event location
49
- syn keyword coffeeDeprecated escape unescape
50
- syn keyword coffeeReserved abstract boolean byte char class const debugger double enum export final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile
51
-
52
- syn sync fromstart
53
- syn sync maxlines=100
54
-
55
- if main_syntax == "coffee"
56
- syn sync ccomment coffeeComment
57
- endif
58
-
59
- " Define the default highlighting.
60
- " For version 5.7 and earlier: only when not done already
61
- " For version 5.8 and later: only when an item doesn't have highlighting yet
62
- if version >= 508 || !exists("did_coffee_syn_inits")
63
- if version < 508
64
- let did_coffee_syn_inits = 1
65
- command -nargs=+ HiLink hi link <args>
66
- else
67
- command -nargs=+ HiLink hi def link <args>
68
- endif
69
- HiLink coffeePrototypeAccess Keyword
70
- HiLink coffeeExtends Keyword
71
- HiLink coffeeLineComment Comment
72
- HiLink coffeeSpecial Special
73
- HiLink coffeeStringS String
74
- HiLink coffeeStringD String
75
- HiLink coffeeCharacter Character
76
- HiLink coffeeSpecialCharacter coffeeSpecial
77
- HiLink coffeeNumber coffeeValue
78
- HiLink coffeeConditional Conditional
79
- HiLink coffeeRepeat Repeat
80
- HiLink coffeeBranch Conditional
81
- HiLink coffeeOperator Operator
82
- HiLink coffeeType Type
83
- HiLink coffeeStatement Statement
84
- HiLink coffeeFunction Function
85
- HiLink coffeeBraces Function
86
- HiLink coffeeError Error
87
- HiLink coffeeScrParenError coffeeError
88
- HiLink coffeeNull Keyword
89
- HiLink coffeeBoolean Boolean
90
- HiLink coffeeRegexpString String
91
-
92
- HiLink coffeeIdentifier Identifier
93
- HiLink coffeeLabel Label
94
- HiLink coffeeException Exception
95
- HiLink coffeeMessage Keyword
96
- HiLink coffeeGlobal Keyword
97
- HiLink coffeeMember Keyword
98
- HiLink coffeeDeprecated Exception
99
- HiLink coffeeReserved Keyword
100
- HiLink coffeeDebug Debug
101
- HiLink coffeeConstant Label
102
-
103
- delcommand HiLink
104
- endif
105
-
106
- let b:current_syntax = "coffee"
107
- if main_syntax == 'coffee'
108
- unlet main_syntax
109
- endif
110
-
111
- " vim: ts=8