haml-more 0.4.0.a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. data/README.md +79 -0
  2. data/lib/haml/more/coffee_script.rb +137 -0
  3. data/lib/haml/more/content_for.rb +25 -0
  4. data/lib/haml/more.rb +45 -0
  5. data/lib/haml-more.rb +1 -0
  6. data/lib/sass/more.rb +16 -0
  7. data/lib/sass-more.rb +1 -0
  8. data/spec/sass/more_spec.rb +21 -0
  9. data/vendor/coffee-script/Cakefile +57 -0
  10. data/vendor/coffee-script/LICENSE +22 -0
  11. data/vendor/coffee-script/README +41 -0
  12. data/vendor/coffee-script/Rakefile +20 -0
  13. data/vendor/coffee-script/bin/cake +7 -0
  14. data/vendor/coffee-script/bin/coffee +7 -0
  15. data/vendor/coffee-script/documentation/coffee/aliases.coffee +9 -0
  16. data/vendor/coffee-script/documentation/coffee/arguments.coffee +4 -0
  17. data/vendor/coffee-script/documentation/coffee/array_comprehensions.coffee +7 -0
  18. data/vendor/coffee-script/documentation/coffee/assignment.coffee +2 -0
  19. data/vendor/coffee-script/documentation/coffee/cake_tasks.coffee +5 -0
  20. data/vendor/coffee-script/documentation/coffee/comparisons.coffee +5 -0
  21. data/vendor/coffee-script/documentation/coffee/conditionals.coffee +9 -0
  22. data/vendor/coffee-script/documentation/coffee/embedded.coffee +5 -0
  23. data/vendor/coffee-script/documentation/coffee/existence.coffee +8 -0
  24. data/vendor/coffee-script/documentation/coffee/expressions.coffee +9 -0
  25. data/vendor/coffee-script/documentation/coffee/expressions_assignment.coffee +1 -0
  26. data/vendor/coffee-script/documentation/coffee/expressions_comprehension.coffee +3 -0
  27. data/vendor/coffee-script/documentation/coffee/expressions_try.coffee +6 -0
  28. data/vendor/coffee-script/documentation/coffee/fat_arrow.coffee +6 -0
  29. data/vendor/coffee-script/documentation/coffee/functions.coffee +2 -0
  30. data/vendor/coffee-script/documentation/coffee/heredocs.coffee +5 -0
  31. data/vendor/coffee-script/documentation/coffee/multiple_return_values.coffee +5 -0
  32. data/vendor/coffee-script/documentation/coffee/object_comprehensions.coffee +4 -0
  33. data/vendor/coffee-script/documentation/coffee/object_extraction.coffee +13 -0
  34. data/vendor/coffee-script/documentation/coffee/objects_and_arrays.coffee +13 -0
  35. data/vendor/coffee-script/documentation/coffee/overview.coffee +29 -0
  36. data/vendor/coffee-script/documentation/coffee/parallel_assignment.coffee +4 -0
  37. data/vendor/coffee-script/documentation/coffee/range_comprehensions.coffee +6 -0
  38. data/vendor/coffee-script/documentation/coffee/scope.coffee +5 -0
  39. data/vendor/coffee-script/documentation/coffee/slices.coffee +6 -0
  40. data/vendor/coffee-script/documentation/coffee/soaks.coffee +1 -0
  41. data/vendor/coffee-script/documentation/coffee/splats.coffee +25 -0
  42. data/vendor/coffee-script/documentation/coffee/splices.coffee +5 -0
  43. data/vendor/coffee-script/documentation/coffee/strings.coffee +8 -0
  44. data/vendor/coffee-script/documentation/coffee/super.coffee +34 -0
  45. data/vendor/coffee-script/documentation/coffee/switch.coffee +10 -0
  46. data/vendor/coffee-script/documentation/coffee/try.coffee +7 -0
  47. data/vendor/coffee-script/documentation/coffee/while.coffee +10 -0
  48. data/vendor/coffee-script/documentation/css/docs.css +213 -0
  49. data/vendor/coffee-script/documentation/css/idle.css +63 -0
  50. data/vendor/coffee-script/documentation/css/logo.png +0 -0
  51. data/vendor/coffee-script/documentation/index.html.erb +967 -0
  52. data/vendor/coffee-script/documentation/js/aliases.js +14 -0
  53. data/vendor/coffee-script/documentation/js/arguments.js +8 -0
  54. data/vendor/coffee-script/documentation/js/array_comprehensions.js +26 -0
  55. data/vendor/coffee-script/documentation/js/assignment.js +5 -0
  56. data/vendor/coffee-script/documentation/js/cake_tasks.js +14 -0
  57. data/vendor/coffee-script/documentation/js/comparisons.js +5 -0
  58. data/vendor/coffee-script/documentation/js/conditionals.js +12 -0
  59. data/vendor/coffee-script/documentation/js/embedded.js +6 -0
  60. data/vendor/coffee-script/documentation/js/existence.js +7 -0
  61. data/vendor/coffee-script/documentation/js/expressions.js +13 -0
  62. data/vendor/coffee-script/documentation/js/expressions_assignment.js +4 -0
  63. data/vendor/coffee-script/documentation/js/expressions_comprehension.js +12 -0
  64. data/vendor/coffee-script/documentation/js/expressions_try.js +9 -0
  65. data/vendor/coffee-script/documentation/js/fat_arrow.js +15 -0
  66. data/vendor/coffee-script/documentation/js/functions.js +9 -0
  67. data/vendor/coffee-script/documentation/js/heredocs.js +4 -0
  68. data/vendor/coffee-script/documentation/js/intro.js +7 -0
  69. data/vendor/coffee-script/documentation/js/multiple_return_values.js +11 -0
  70. data/vendor/coffee-script/documentation/js/object_comprehensions.js +17 -0
  71. data/vendor/coffee-script/documentation/js/object_extraction.js +17 -0
  72. data/vendor/coffee-script/documentation/js/objects_and_arrays.js +10 -0
  73. data/vendor/coffee-script/documentation/js/overview.js +43 -0
  74. data/vendor/coffee-script/documentation/js/parallel_assignment.js +8 -0
  75. data/vendor/coffee-script/documentation/js/punctuation.js +8 -0
  76. data/vendor/coffee-script/documentation/js/range_comprehensions.js +21 -0
  77. data/vendor/coffee-script/documentation/js/scope.js +10 -0
  78. data/vendor/coffee-script/documentation/js/slices.js +6 -0
  79. data/vendor/coffee-script/documentation/js/soaks.js +4 -0
  80. data/vendor/coffee-script/documentation/js/splats.js +16 -0
  81. data/vendor/coffee-script/documentation/js/splices.js +5 -0
  82. data/vendor/coffee-script/documentation/js/strings.js +9 -0
  83. data/vendor/coffee-script/documentation/js/super.js +37 -0
  84. data/vendor/coffee-script/documentation/js/switch.js +18 -0
  85. data/vendor/coffee-script/documentation/js/try.js +10 -0
  86. data/vendor/coffee-script/documentation/js/while.js +22 -0
  87. data/vendor/coffee-script/documentation/underscore.html +627 -0
  88. data/vendor/coffee-script/examples/beautiful_code/binary_search.coffee +16 -0
  89. data/vendor/coffee-script/examples/beautiful_code/quicksort_runtime.coffee +13 -0
  90. data/vendor/coffee-script/examples/beautiful_code/regular_expression_matcher.coffee +34 -0
  91. data/vendor/coffee-script/examples/blocks.coffee +57 -0
  92. data/vendor/coffee-script/examples/code.coffee +173 -0
  93. data/vendor/coffee-script/examples/computer_science/README +4 -0
  94. data/vendor/coffee-script/examples/computer_science/binary_search.coffee +25 -0
  95. data/vendor/coffee-script/examples/computer_science/bubble_sort.coffee +11 -0
  96. data/vendor/coffee-script/examples/computer_science/linked_list.coffee +106 -0
  97. data/vendor/coffee-script/examples/computer_science/luhn_algorithm.coffee +36 -0
  98. data/vendor/coffee-script/examples/computer_science/merge_sort.coffee +19 -0
  99. data/vendor/coffee-script/examples/computer_science/selection_sort.coffee +23 -0
  100. data/vendor/coffee-script/examples/poignant.coffee +186 -0
  101. data/vendor/coffee-script/examples/potion.coffee +205 -0
  102. data/vendor/coffee-script/examples/underscore.coffee +603 -0
  103. data/vendor/coffee-script/examples/web_server.coffee +12 -0
  104. data/vendor/coffee-script/extras/CoffeeScript.tmbundle/Preferences/CoffeeScript.tmPreferences +24 -0
  105. data/vendor/coffee-script/extras/CoffeeScript.tmbundle/Syntaxes/CoffeeScript.tmLanguage +361 -0
  106. data/vendor/coffee-script/extras/CoffeeScript.tmbundle/info.plist +10 -0
  107. data/vendor/coffee-script/extras/EXTRAS +20 -0
  108. data/vendor/coffee-script/extras/coffee.vim +117 -0
  109. data/vendor/coffee-script/index.html +1847 -0
  110. data/vendor/coffee-script/lib/bin/cake +7 -0
  111. data/vendor/coffee-script/lib/bin/coffee +7 -0
  112. data/vendor/coffee-script/lib/cake.js +80 -0
  113. data/vendor/coffee-script/lib/coffee-script.js +61 -0
  114. data/vendor/coffee-script/lib/command_line.js +201 -0
  115. data/vendor/coffee-script/lib/grammar.js +564 -0
  116. data/vendor/coffee-script/lib/lexer.js +405 -0
  117. data/vendor/coffee-script/lib/narwhal.js +44 -0
  118. data/vendor/coffee-script/lib/nodes.js +1328 -0
  119. data/vendor/coffee-script/lib/optparse.js +117 -0
  120. data/vendor/coffee-script/lib/parser.js +536 -0
  121. data/vendor/coffee-script/lib/repl.js +32 -0
  122. data/vendor/coffee-script/lib/rewriter.js +383 -0
  123. data/vendor/coffee-script/lib/scope.js +114 -0
  124. data/vendor/coffee-script/package.json +7 -0
  125. data/vendor/coffee-script/src/cake.coffee +45 -0
  126. data/vendor/coffee-script/src/coffee-script.coffee +45 -0
  127. data/vendor/coffee-script/src/command_line.coffee +130 -0
  128. data/vendor/coffee-script/src/grammar.coffee +456 -0
  129. data/vendor/coffee-script/src/lexer.coffee +327 -0
  130. data/vendor/coffee-script/src/narwhal.coffee +42 -0
  131. data/vendor/coffee-script/src/nodes.coffee +1045 -0
  132. data/vendor/coffee-script/src/optparse.coffee +79 -0
  133. data/vendor/coffee-script/src/repl.coffee +23 -0
  134. data/vendor/coffee-script/src/rewriter.coffee +253 -0
  135. data/vendor/coffee-script/src/scope.coffee +75 -0
  136. data/vendor/coffee-script/test/test_arguments.coffee +34 -0
  137. data/vendor/coffee-script/test/test_array_comprehension.coffee +42 -0
  138. data/vendor/coffee-script/test/test_assignment.coffee +26 -0
  139. data/vendor/coffee-script/test/test_blocks.coffee +4 -0
  140. data/vendor/coffee-script/test/test_calling_super.coffee +42 -0
  141. data/vendor/coffee-script/test/test_chained_calls.coffee +25 -0
  142. data/vendor/coffee-script/test/test_destructuring_assignment.coffee +62 -0
  143. data/vendor/coffee-script/test/test_everything.coffee +29 -0
  144. data/vendor/coffee-script/test/test_exceptions.coffee +2 -0
  145. data/vendor/coffee-script/test/test_existence.coffee +81 -0
  146. data/vendor/coffee-script/test/test_expressions.coffee +30 -0
  147. data/vendor/coffee-script/test/test_fancy_if_statement.coffee +26 -0
  148. data/vendor/coffee-script/test/test_functions.coffee +80 -0
  149. data/vendor/coffee-script/test/test_funky_comments.coffee +25 -0
  150. data/vendor/coffee-script/test/test_heredocs.coffee +46 -0
  151. data/vendor/coffee-script/test/test_lexical_scope.coffee +10 -0
  152. data/vendor/coffee-script/test/test_literals.coffee +56 -0
  153. data/vendor/coffee-script/test/test_nested_comprehensions.coffee +11 -0
  154. data/vendor/coffee-script/test/test_newline_escaping.coffee +6 -0
  155. data/vendor/coffee-script/test/test_operations.coffee +18 -0
  156. data/vendor/coffee-script/test/test_range_comprehension.coffee +20 -0
  157. data/vendor/coffee-script/test/test_ranges_and_slices.coffee +16 -0
  158. data/vendor/coffee-script/test/test_splats.coffee +47 -0
  159. data/vendor/coffee-script/test/test_splices.coffee +5 -0
  160. data/vendor/coffee-script/test/test_switch.coffee +64 -0
  161. data/vendor/coffee-script/test/test_while.coffee +30 -0
  162. data/vendor/coffee-script/vendor/jison/Jakefile +31 -0
  163. data/vendor/coffee-script/vendor/jison/README.md +347 -0
  164. data/vendor/coffee-script/vendor/jison/bin/jison +3 -0
  165. data/vendor/coffee-script/vendor/jison/bin/json2jison +3 -0
  166. data/vendor/coffee-script/vendor/jison/examples/ansic.jison +415 -0
  167. data/vendor/coffee-script/vendor/jison/examples/basic.json +8 -0
  168. data/vendor/coffee-script/vendor/jison/examples/basic2.json +9 -0
  169. data/vendor/coffee-script/vendor/jison/examples/basic2_lex.json +16 -0
  170. data/vendor/coffee-script/vendor/jison/examples/basic_lex.json +15 -0
  171. data/vendor/coffee-script/vendor/jison/examples/calculator.jison +38 -0
  172. data/vendor/coffee-script/vendor/jison/examples/calculator.jisonlex +14 -0
  173. data/vendor/coffee-script/vendor/jison/examples/calculator.json +42 -0
  174. data/vendor/coffee-script/vendor/jison/examples/classy.json +105 -0
  175. data/vendor/coffee-script/vendor/jison/examples/classy_ast.json +126 -0
  176. data/vendor/coffee-script/vendor/jison/examples/dism.json +25 -0
  177. data/vendor/coffee-script/vendor/jison/examples/dism_lr0.json +26 -0
  178. data/vendor/coffee-script/vendor/jison/examples/json.js +80 -0
  179. data/vendor/coffee-script/vendor/jison/examples/json_ast.js +83 -0
  180. data/vendor/coffee-script/vendor/jison/examples/precedence.json +26 -0
  181. data/vendor/coffee-script/vendor/jison/examples/reduce_conflict.json +13 -0
  182. data/vendor/coffee-script/vendor/jison/lib/jison/bnf.js +43 -0
  183. data/vendor/coffee-script/vendor/jison/lib/jison/jisonlex.js +18 -0
  184. data/vendor/coffee-script/vendor/jison/lib/jison/json2jison.js +146 -0
  185. data/vendor/coffee-script/vendor/jison/lib/jison/lexer.js +224 -0
  186. data/vendor/coffee-script/vendor/jison/lib/jison/util/bnf-parser.js +383 -0
  187. data/vendor/coffee-script/vendor/jison/lib/jison/util/lex-parser.js +407 -0
  188. data/vendor/coffee-script/vendor/jison/lib/jison/util/set.js +94 -0
  189. data/vendor/coffee-script/vendor/jison/lib/jison/util/typal.js +90 -0
  190. data/vendor/coffee-script/vendor/jison/lib/jison.js +1414 -0
  191. data/vendor/coffee-script/vendor/jison/package.json +14 -0
  192. data/vendor/coffee-script/vendor/jison/src/bnf.jison +110 -0
  193. data/vendor/coffee-script/vendor/jison/src/bnf.jisonlex +25 -0
  194. data/vendor/coffee-script/vendor/jison/src/bnf.lex.json +24 -0
  195. data/vendor/coffee-script/vendor/jison/src/jisonlex.jison +129 -0
  196. data/vendor/coffee-script/vendor/jison/src/jisonlex.jisonlex +31 -0
  197. data/vendor/coffee-script/vendor/jison/src/jisonlex.lex.json +30 -0
  198. data/vendor/coffee-script/vendor/jison/tests/all-tests.js +8 -0
  199. data/vendor/coffee-script/vendor/jison/tests/grammar/bnf.js +91 -0
  200. data/vendor/coffee-script/vendor/jison/tests/grammar/bnf_parse.js +65 -0
  201. data/vendor/coffee-script/vendor/jison/tests/grammar/grammar-tests.js +10 -0
  202. data/vendor/coffee-script/vendor/jison/tests/grammar/json2jison.js +24 -0
  203. data/vendor/coffee-script/vendor/jison/tests/grammar/lex/ansic.jisonlex +115 -0
  204. data/vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.jisonlex +25 -0
  205. data/vendor/coffee-script/vendor/jison/tests/grammar/lex/bnf.lex.json +24 -0
  206. data/vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.jisonlex +31 -0
  207. data/vendor/coffee-script/vendor/jison/tests/grammar/lex/lex_grammar.lex.json +30 -0
  208. data/vendor/coffee-script/vendor/jison/tests/grammar/lex.jison +119 -0
  209. data/vendor/coffee-script/vendor/jison/tests/grammar/lex.js +58 -0
  210. data/vendor/coffee-script/vendor/jison/tests/grammar/lex_parse.js +117 -0
  211. data/vendor/coffee-script/vendor/jison/tests/lexer/lexer-tests.js +6 -0
  212. data/vendor/coffee-script/vendor/jison/tests/lexer/regexplexer.js +417 -0
  213. data/vendor/coffee-script/vendor/jison/tests/parser/actions.js +311 -0
  214. data/vendor/coffee-script/vendor/jison/tests/parser/api.js +236 -0
  215. data/vendor/coffee-script/vendor/jison/tests/parser/generator.js +196 -0
  216. data/vendor/coffee-script/vendor/jison/tests/parser/lalr.js +183 -0
  217. data/vendor/coffee-script/vendor/jison/tests/parser/lr0.js +72 -0
  218. data/vendor/coffee-script/vendor/jison/tests/parser/lr1.js +119 -0
  219. data/vendor/coffee-script/vendor/jison/tests/parser/parser-tests.js +14 -0
  220. data/vendor/coffee-script/vendor/jison/tests/parser/precedence.js +237 -0
  221. data/vendor/coffee-script/vendor/jison/tests/parser/slr.js +52 -0
  222. data/vendor/coffee-script/vendor/jison/tests/parser/tables.js +126 -0
  223. data/vendor/coffee-script/vendor/jison/tests/performance.js +110 -0
  224. data/vendor/coffee-script/vendor/jison/tests/setup.js +3 -0
  225. metadata +324 -0
@@ -0,0 +1,361 @@
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>
@@ -0,0 +1,10 @@
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>
@@ -0,0 +1,20 @@
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, drop it into:
5
+ ~/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
@@ -0,0 +1,117 @@
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 coffeeFunctionParams "([^)]*)\s*->"
32
+ syn match coffeeBindFunctionParams "([^)]*)\s*=>"
33
+ syn match coffeePrototypeAccess "::"
34
+ syn match coffeeBindFunction "=[1]>[1]"
35
+ syn match coffeeFunction "->"
36
+
37
+ syn keyword coffeeExtends extends
38
+ syn keyword coffeeConditional if else switch then not
39
+ syn keyword coffeeRepeat while for in of
40
+ syn keyword coffeeBranch break continue
41
+ syn keyword coffeeOperator delete instanceof typeof
42
+ syn keyword coffeeType Array Boolean Date Function Number Object String RegExp
43
+ syn keyword coffeeStatement return with
44
+ syn keyword coffeeBoolean true false
45
+ syn keyword coffeeNull null undefined
46
+ syn keyword coffeeIdentifier arguments this var
47
+ syn keyword coffeeLabel case default
48
+ syn keyword coffeeException try catch finally throw
49
+ syn keyword coffeeMessage alert confirm prompt status
50
+ syn keyword coffeeGlobal self window top parent
51
+ syn keyword coffeeMember document event location
52
+ syn keyword coffeeDeprecated escape unescape
53
+ 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
54
+
55
+ syn sync fromstart
56
+ syn sync maxlines=100
57
+
58
+ if main_syntax == "coffee"
59
+ syn sync ccomment coffeeComment
60
+ endif
61
+
62
+ " Define the default highlighting.
63
+ " For version 5.7 and earlier: only when not done already
64
+ " For version 5.8 and later: only when an item doesn't have highlighting yet
65
+ if version >= 508 || !exists("did_coffee_syn_inits")
66
+ if version < 508
67
+ let did_coffee_syn_inits = 1
68
+ command -nargs=+ HiLink hi link <args>
69
+ else
70
+ command -nargs=+ HiLink hi def link <args>
71
+ endif
72
+ HiLink coffeePrototypeAccess Keyword
73
+ HiLink coffeeExtends Keyword
74
+ HiLink coffeeLineComment Comment
75
+ HiLink coffeeSpecial Special
76
+ HiLink coffeeStringS String
77
+ HiLink coffeeStringD String
78
+ HiLink coffeeCharacter Character
79
+ HiLink coffeeSpecialCharacter coffeeSpecial
80
+ HiLink coffeeNumber coffeeValue
81
+ HiLink coffeeConditional Conditional
82
+ HiLink coffeeRepeat Repeat
83
+ HiLink coffeeBranch Conditional
84
+ HiLink coffeeOperator Operator
85
+ HiLink coffeeType Type
86
+ HiLink coffeeStatement Statement
87
+ HiLink coffeeBindFunctionParams Function
88
+ HiLink coffeeFunctionParams Function
89
+ HiLink coffeeFunction Function
90
+ HiLink coffeeBindFunction Function
91
+ HiLink coffeeBraces Function
92
+ HiLink coffeeError Error
93
+ HiLink coffeeScrParenError coffeeError
94
+ HiLink coffeeNull Keyword
95
+ HiLink coffeeBoolean Boolean
96
+ HiLink coffeeRegexpString String
97
+
98
+ HiLink coffeeIdentifier Identifier
99
+ HiLink coffeeLabel Label
100
+ HiLink coffeeException Exception
101
+ HiLink coffeeMessage Keyword
102
+ HiLink coffeeGlobal Keyword
103
+ HiLink coffeeMember Keyword
104
+ HiLink coffeeDeprecated Exception
105
+ HiLink coffeeReserved Keyword
106
+ HiLink coffeeDebug Debug
107
+ HiLink coffeeConstant Label
108
+
109
+ delcommand HiLink
110
+ endif
111
+
112
+ let b:current_syntax = "coffee"
113
+ if main_syntax == 'coffee'
114
+ unlet main_syntax
115
+ endif
116
+
117
+ " vim: ts=8