utils 0.0.67 → 0.0.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/VERSION +1 -1
  2. data/bin/edit +3 -1
  3. data/lib/utils/editor.rb +14 -0
  4. data/lib/utils/version.rb +1 -1
  5. data/utils.gemspec +3 -3
  6. metadata +3 -74
  7. data/lib/utils/config/vim/after/syntax/haml.vim +0 -9
  8. data/lib/utils/config/vim/after/syntax/html.vim +0 -11
  9. data/lib/utils/config/vim/autoload/Align.vim +0 -1029
  10. data/lib/utils/config/vim/autoload/AlignMaps.vim +0 -330
  11. data/lib/utils/config/vim/autoload/ctrlp/bookmarkdir.vim +0 -139
  12. data/lib/utils/config/vim/autoload/ctrlp/buffertag.vim +0 -238
  13. data/lib/utils/config/vim/autoload/ctrlp/changes.vim +0 -96
  14. data/lib/utils/config/vim/autoload/ctrlp/dir.vim +0 -90
  15. data/lib/utils/config/vim/autoload/ctrlp/line.vim +0 -63
  16. data/lib/utils/config/vim/autoload/ctrlp/mixed.vim +0 -83
  17. data/lib/utils/config/vim/autoload/ctrlp/mrufiles.vim +0 -119
  18. data/lib/utils/config/vim/autoload/ctrlp/quickfix.vim +0 -62
  19. data/lib/utils/config/vim/autoload/ctrlp/rtscript.vim +0 -49
  20. data/lib/utils/config/vim/autoload/ctrlp/tag.vim +0 -112
  21. data/lib/utils/config/vim/autoload/ctrlp/undo.vim +0 -154
  22. data/lib/utils/config/vim/autoload/ctrlp/utils.vim +0 -72
  23. data/lib/utils/config/vim/autoload/ctrlp.vim +0 -1772
  24. data/lib/utils/config/vim/autoload/rails.vim +0 -4570
  25. data/lib/utils/config/vim/autoload/rubycomplete.vim +0 -801
  26. data/lib/utils/config/vim/autoload/sqlcomplete.vim +0 -741
  27. data/lib/utils/config/vim/autoload/vimball.vim +0 -750
  28. data/lib/utils/config/vim/colors/flori.vim +0 -116
  29. data/lib/utils/config/vim/compiler/coffee.vim +0 -68
  30. data/lib/utils/config/vim/compiler/eruby.vim +0 -40
  31. data/lib/utils/config/vim/compiler/ruby.vim +0 -67
  32. data/lib/utils/config/vim/compiler/rubyunit.vim +0 -34
  33. data/lib/utils/config/vim/doc/Decho.txt +0 -372
  34. data/lib/utils/config/vim/doc/coffee-script.txt +0 -116
  35. data/lib/utils/config/vim/doc/ctrlp.txt +0 -1113
  36. data/lib/utils/config/vim/doc/fugitive.txt +0 -257
  37. data/lib/utils/config/vim/doc/rails.txt +0 -1022
  38. data/lib/utils/config/vim/doc/xml-plugin.txt +0 -226
  39. data/lib/utils/config/vim/ftdetect/coffee.vim +0 -8
  40. data/lib/utils/config/vim/ftdetect/eco.vim +0 -1
  41. data/lib/utils/config/vim/ftdetect/ragel.vim +0 -2
  42. data/lib/utils/config/vim/ftdetect/ruby.vim +0 -17
  43. data/lib/utils/config/vim/ftdetect/slim.vim +0 -2
  44. data/lib/utils/config/vim/ftplugin/coffee.vim +0 -221
  45. data/lib/utils/config/vim/ftplugin/eruby.vim +0 -100
  46. data/lib/utils/config/vim/ftplugin/ruby.vim +0 -260
  47. data/lib/utils/config/vim/ftplugin/xml.vim +0 -941
  48. data/lib/utils/config/vim/indent/IndentAnything_html.vim +0 -35
  49. data/lib/utils/config/vim/indent/coffee.vim +0 -338
  50. data/lib/utils/config/vim/indent/eruby.vim +0 -77
  51. data/lib/utils/config/vim/indent/javascript.vim +0 -116
  52. data/lib/utils/config/vim/indent/ruby.vim +0 -377
  53. data/lib/utils/config/vim/indent/slim.vim +0 -75
  54. data/lib/utils/config/vim/plugin/AlignMapsPlugin.vim +0 -242
  55. data/lib/utils/config/vim/plugin/AlignPlugin.vim +0 -41
  56. data/lib/utils/config/vim/plugin/Decho.vim +0 -592
  57. data/lib/utils/config/vim/plugin/IndentAnything.vim +0 -675
  58. data/lib/utils/config/vim/plugin/bufexplorer.vim +0 -1144
  59. data/lib/utils/config/vim/plugin/cecutil.vim +0 -508
  60. data/lib/utils/config/vim/plugin/ctrlp.vim +0 -61
  61. data/lib/utils/config/vim/plugin/fugitive.vim +0 -2041
  62. data/lib/utils/config/vim/plugin/lusty-explorer.vim +0 -1509
  63. data/lib/utils/config/vim/plugin/rails.vim +0 -339
  64. data/lib/utils/config/vim/plugin/rubyextra.vim +0 -193
  65. data/lib/utils/config/vim/plugin/surround.vim +0 -628
  66. data/lib/utils/config/vim/plugin/taglist.vim +0 -4546
  67. data/lib/utils/config/vim/plugin/test/IndentAnything/test.js +0 -131
  68. data/lib/utils/config/vim/plugin/vimballPlugin.vim +0 -40
  69. data/lib/utils/config/vim/syntax/Decho.vim +0 -101
  70. data/lib/utils/config/vim/syntax/coffee.vim +0 -217
  71. data/lib/utils/config/vim/syntax/eco.vim +0 -62
  72. data/lib/utils/config/vim/syntax/eruby.vim +0 -73
  73. data/lib/utils/config/vim/syntax/javascript.vim +0 -246
  74. data/lib/utils/config/vim/syntax/ragel.vim +0 -165
  75. data/lib/utils/config/vim/syntax/ruby.vim +0 -367
  76. data/lib/utils/config/vim/syntax/slim.vim +0 -117
  77. data/lib/utils/config/vimrc +0 -540
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.67
1
+ 0.0.68
data/bin/edit CHANGED
@@ -16,6 +16,7 @@ Options are
16
16
 
17
17
  -w open a buffer in vim and wait until it is deleted
18
18
  -s read files and files:linenumbers from stdin and open them
19
+ -m make intermediate non existing directories to file
19
20
  -p DURATION pause for this many seconds to wait for vim's reaction
20
21
  -S SERVER specify the server for this edit command
21
22
  -h display this help
@@ -25,13 +26,14 @@ Version is #{File.basename($0)} #{Utils::VERSION}.
25
26
  exit 1
26
27
  end
27
28
 
28
- $opt = go 'p:S:wsh'
29
+ $opt = go 'p:S:wsmh'
29
30
  $opt['h'] and usage
30
31
 
31
32
  editor = Editor.new do |config|
32
33
  config.wait = $opt['w']
33
34
  config.pause_duration = ($opt['p'] || 1).to_i
34
35
  s = $opt['S'] and config.servername = s
36
+ config.mkdir = $opt['m']
35
37
  end
36
38
 
37
39
  if $opt['s']
data/lib/utils/editor.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'tins/xt/full'
2
2
  require 'tins/deep_const_get'
3
+ require 'fileutils'
3
4
 
4
5
  module Utils
5
6
  class Editor
@@ -58,6 +59,8 @@ module Utils
58
59
 
59
60
  attr_accessor :servername
60
61
 
62
+ attr_accessor :mkdir
63
+
61
64
  alias wait? wait
62
65
 
63
66
  def vim
@@ -123,7 +126,17 @@ module Utils
123
126
  end
124
127
  end
125
128
 
129
+ def make_dirs(*filenames)
130
+ if mkdir
131
+ for filename in filenames
132
+ FileUtils.mkdir File.dirname(filename)
133
+ end
134
+ end
135
+ end
136
+ private :make_dirs
137
+
126
138
  def edit_file(*filenames)
139
+ make_dirs *filenames
127
140
  if gui
128
141
  edit_remote_file(*filenames)
129
142
  else
@@ -132,6 +145,7 @@ module Utils
132
145
  end
133
146
 
134
147
  def edit_file_linenumber(filename, linenumber)
148
+ make_dirs filename
135
149
  if wait?
136
150
  edit_remote(filename)
137
151
  sleep pause_duration
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.0.67'
3
+ VERSION = '0.0.68'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
data/utils.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "utils"
5
- s.version = "0.0.67"
5
+ s.version = "0.0.68"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
9
- s.date = "2012-12-05"
9
+ s.date = "2012-12-14"
10
10
  s.description = "This ruby gem provides some useful command line utilities"
11
11
  s.email = "flori@ping.de"
12
12
  s.executables = ["chroot-exec", "chroot-libs", "classify", "create_tags", "discover", "edit", "edit_wait", "enum", "errf", "git-empty", "irb_connect", "myex", "number_files", "on_change", "path", "probe", "same_files", "search", "sedit", "sshscreen", "strip_spaces", "unquarantine_apps", "untest", "utils-install-config", "utils-utilsrc", "vacuum_firefox_sqlite", "xmp"]
13
13
  s.extra_rdoc_files = ["README.rdoc", "lib/utils.rb", "lib/utils/config.rb", "lib/utils/config/config_file.rb", "lib/utils/editor.rb", "lib/utils/file_xt.rb", "lib/utils/finder.rb", "lib/utils/grepper.rb", "lib/utils/irb.rb", "lib/utils/md5.rb", "lib/utils/patterns.rb", "lib/utils/version.rb"]
14
- s.files = [".gitignore", "COPYING", "Gemfile", "README.rdoc", "Rakefile", "TODO", "VERSION", "bin/chroot-exec", "bin/chroot-libs", "bin/classify", "bin/create_tags", "bin/discover", "bin/edit", "bin/edit_wait", "bin/enum", "bin/errf", "bin/git-empty", "bin/irb_connect", "bin/myex", "bin/number_files", "bin/on_change", "bin/path", "bin/probe", "bin/same_files", "bin/search", "bin/sedit", "bin/sshscreen", "bin/strip_spaces", "bin/unquarantine_apps", "bin/untest", "bin/utils-install-config", "bin/utils-utilsrc", "bin/vacuum_firefox_sqlite", "bin/xmp", "lib/utils.rb", "lib/utils/config.rb", "lib/utils/config/config_file.rb", "lib/utils/config/gdb/asm", "lib/utils/config/gdb/ruby", "lib/utils/config/gdbinit", "lib/utils/config/irbrc", "lib/utils/config/rdebugrc", "lib/utils/config/rvmrc", "lib/utils/config/screenrc", "lib/utils/config/utilsrc", "lib/utils/config/vim/after/syntax/haml.vim", "lib/utils/config/vim/after/syntax/html.vim", "lib/utils/config/vim/autoload/Align.vim", "lib/utils/config/vim/autoload/AlignMaps.vim", "lib/utils/config/vim/autoload/ctrlp.vim", "lib/utils/config/vim/autoload/ctrlp/bookmarkdir.vim", "lib/utils/config/vim/autoload/ctrlp/buffertag.vim", "lib/utils/config/vim/autoload/ctrlp/changes.vim", "lib/utils/config/vim/autoload/ctrlp/dir.vim", "lib/utils/config/vim/autoload/ctrlp/line.vim", "lib/utils/config/vim/autoload/ctrlp/mixed.vim", "lib/utils/config/vim/autoload/ctrlp/mrufiles.vim", "lib/utils/config/vim/autoload/ctrlp/quickfix.vim", "lib/utils/config/vim/autoload/ctrlp/rtscript.vim", "lib/utils/config/vim/autoload/ctrlp/tag.vim", "lib/utils/config/vim/autoload/ctrlp/undo.vim", "lib/utils/config/vim/autoload/ctrlp/utils.vim", "lib/utils/config/vim/autoload/rails.vim", "lib/utils/config/vim/autoload/rubycomplete.vim", "lib/utils/config/vim/autoload/sqlcomplete.vim", "lib/utils/config/vim/autoload/vimball.vim", "lib/utils/config/vim/colors/flori.vim", "lib/utils/config/vim/compiler/coffee.vim", "lib/utils/config/vim/compiler/eruby.vim", "lib/utils/config/vim/compiler/ruby.vim", "lib/utils/config/vim/compiler/rubyunit.vim", "lib/utils/config/vim/doc/Decho.txt", "lib/utils/config/vim/doc/coffee-script.txt", "lib/utils/config/vim/doc/ctrlp.txt", "lib/utils/config/vim/doc/fugitive.txt", "lib/utils/config/vim/doc/rails.txt", "lib/utils/config/vim/doc/xml-plugin.txt", "lib/utils/config/vim/ftdetect/coffee.vim", "lib/utils/config/vim/ftdetect/eco.vim", "lib/utils/config/vim/ftdetect/ragel.vim", "lib/utils/config/vim/ftdetect/ruby.vim", "lib/utils/config/vim/ftdetect/slim.vim", "lib/utils/config/vim/ftplugin/coffee.vim", "lib/utils/config/vim/ftplugin/eruby.vim", "lib/utils/config/vim/ftplugin/ruby.vim", "lib/utils/config/vim/ftplugin/xml.vim", "lib/utils/config/vim/indent/IndentAnything_html.vim", "lib/utils/config/vim/indent/coffee.vim", "lib/utils/config/vim/indent/eruby.vim", "lib/utils/config/vim/indent/javascript.vim", "lib/utils/config/vim/indent/ruby.vim", "lib/utils/config/vim/indent/slim.vim", "lib/utils/config/vim/plugin/AlignMapsPlugin.vim", "lib/utils/config/vim/plugin/AlignPlugin.vim", "lib/utils/config/vim/plugin/Decho.vim", "lib/utils/config/vim/plugin/IndentAnything.vim", "lib/utils/config/vim/plugin/bufexplorer.vim", "lib/utils/config/vim/plugin/cecutil.vim", "lib/utils/config/vim/plugin/ctrlp.vim", "lib/utils/config/vim/plugin/fugitive.vim", "lib/utils/config/vim/plugin/lusty-explorer.vim", "lib/utils/config/vim/plugin/rails.vim", "lib/utils/config/vim/plugin/rubyextra.vim", "lib/utils/config/vim/plugin/surround.vim", "lib/utils/config/vim/plugin/taglist.vim", "lib/utils/config/vim/plugin/test/IndentAnything/test.js", "lib/utils/config/vim/plugin/vimballPlugin.vim", "lib/utils/config/vim/syntax/Decho.vim", "lib/utils/config/vim/syntax/coffee.vim", "lib/utils/config/vim/syntax/eco.vim", "lib/utils/config/vim/syntax/eruby.vim", "lib/utils/config/vim/syntax/javascript.vim", "lib/utils/config/vim/syntax/ragel.vim", "lib/utils/config/vim/syntax/ruby.vim", "lib/utils/config/vim/syntax/slim.vim", "lib/utils/config/vimrc", "lib/utils/editor.rb", "lib/utils/file_xt.rb", "lib/utils/finder.rb", "lib/utils/grepper.rb", "lib/utils/irb.rb", "lib/utils/md5.rb", "lib/utils/patterns.rb", "lib/utils/version.rb", "utils.gemspec"]
14
+ s.files = [".gitignore", "COPYING", "Gemfile", "README.rdoc", "Rakefile", "TODO", "VERSION", "bin/chroot-exec", "bin/chroot-libs", "bin/classify", "bin/create_tags", "bin/discover", "bin/edit", "bin/edit_wait", "bin/enum", "bin/errf", "bin/git-empty", "bin/irb_connect", "bin/myex", "bin/number_files", "bin/on_change", "bin/path", "bin/probe", "bin/same_files", "bin/search", "bin/sedit", "bin/sshscreen", "bin/strip_spaces", "bin/unquarantine_apps", "bin/untest", "bin/utils-install-config", "bin/utils-utilsrc", "bin/vacuum_firefox_sqlite", "bin/xmp", "lib/utils.rb", "lib/utils/config.rb", "lib/utils/config/config_file.rb", "lib/utils/config/gdb/asm", "lib/utils/config/gdb/ruby", "lib/utils/config/gdbinit", "lib/utils/config/irbrc", "lib/utils/config/rdebugrc", "lib/utils/config/rvmrc", "lib/utils/config/screenrc", "lib/utils/config/utilsrc", "lib/utils/editor.rb", "lib/utils/file_xt.rb", "lib/utils/finder.rb", "lib/utils/grepper.rb", "lib/utils/irb.rb", "lib/utils/md5.rb", "lib/utils/patterns.rb", "lib/utils/version.rb", "utils.gemspec"]
15
15
  s.homepage = "http://github.com/flori/utils"
16
16
  s.rdoc_options = ["--title", "Utils - Some useful command line utilities", "--main", "README.rdoc"]
17
17
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.67
4
+ version: 0.0.68
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-05 00:00:00.000000000 Z
12
+ date: 2012-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gem_hadar
@@ -181,77 +181,6 @@ files:
181
181
  - lib/utils/config/rvmrc
182
182
  - lib/utils/config/screenrc
183
183
  - lib/utils/config/utilsrc
184
- - lib/utils/config/vim/after/syntax/haml.vim
185
- - lib/utils/config/vim/after/syntax/html.vim
186
- - lib/utils/config/vim/autoload/Align.vim
187
- - lib/utils/config/vim/autoload/AlignMaps.vim
188
- - lib/utils/config/vim/autoload/ctrlp.vim
189
- - lib/utils/config/vim/autoload/ctrlp/bookmarkdir.vim
190
- - lib/utils/config/vim/autoload/ctrlp/buffertag.vim
191
- - lib/utils/config/vim/autoload/ctrlp/changes.vim
192
- - lib/utils/config/vim/autoload/ctrlp/dir.vim
193
- - lib/utils/config/vim/autoload/ctrlp/line.vim
194
- - lib/utils/config/vim/autoload/ctrlp/mixed.vim
195
- - lib/utils/config/vim/autoload/ctrlp/mrufiles.vim
196
- - lib/utils/config/vim/autoload/ctrlp/quickfix.vim
197
- - lib/utils/config/vim/autoload/ctrlp/rtscript.vim
198
- - lib/utils/config/vim/autoload/ctrlp/tag.vim
199
- - lib/utils/config/vim/autoload/ctrlp/undo.vim
200
- - lib/utils/config/vim/autoload/ctrlp/utils.vim
201
- - lib/utils/config/vim/autoload/rails.vim
202
- - lib/utils/config/vim/autoload/rubycomplete.vim
203
- - lib/utils/config/vim/autoload/sqlcomplete.vim
204
- - lib/utils/config/vim/autoload/vimball.vim
205
- - lib/utils/config/vim/colors/flori.vim
206
- - lib/utils/config/vim/compiler/coffee.vim
207
- - lib/utils/config/vim/compiler/eruby.vim
208
- - lib/utils/config/vim/compiler/ruby.vim
209
- - lib/utils/config/vim/compiler/rubyunit.vim
210
- - lib/utils/config/vim/doc/Decho.txt
211
- - lib/utils/config/vim/doc/coffee-script.txt
212
- - lib/utils/config/vim/doc/ctrlp.txt
213
- - lib/utils/config/vim/doc/fugitive.txt
214
- - lib/utils/config/vim/doc/rails.txt
215
- - lib/utils/config/vim/doc/xml-plugin.txt
216
- - lib/utils/config/vim/ftdetect/coffee.vim
217
- - lib/utils/config/vim/ftdetect/eco.vim
218
- - lib/utils/config/vim/ftdetect/ragel.vim
219
- - lib/utils/config/vim/ftdetect/ruby.vim
220
- - lib/utils/config/vim/ftdetect/slim.vim
221
- - lib/utils/config/vim/ftplugin/coffee.vim
222
- - lib/utils/config/vim/ftplugin/eruby.vim
223
- - lib/utils/config/vim/ftplugin/ruby.vim
224
- - lib/utils/config/vim/ftplugin/xml.vim
225
- - lib/utils/config/vim/indent/IndentAnything_html.vim
226
- - lib/utils/config/vim/indent/coffee.vim
227
- - lib/utils/config/vim/indent/eruby.vim
228
- - lib/utils/config/vim/indent/javascript.vim
229
- - lib/utils/config/vim/indent/ruby.vim
230
- - lib/utils/config/vim/indent/slim.vim
231
- - lib/utils/config/vim/plugin/AlignMapsPlugin.vim
232
- - lib/utils/config/vim/plugin/AlignPlugin.vim
233
- - lib/utils/config/vim/plugin/Decho.vim
234
- - lib/utils/config/vim/plugin/IndentAnything.vim
235
- - lib/utils/config/vim/plugin/bufexplorer.vim
236
- - lib/utils/config/vim/plugin/cecutil.vim
237
- - lib/utils/config/vim/plugin/ctrlp.vim
238
- - lib/utils/config/vim/plugin/fugitive.vim
239
- - lib/utils/config/vim/plugin/lusty-explorer.vim
240
- - lib/utils/config/vim/plugin/rails.vim
241
- - lib/utils/config/vim/plugin/rubyextra.vim
242
- - lib/utils/config/vim/plugin/surround.vim
243
- - lib/utils/config/vim/plugin/taglist.vim
244
- - lib/utils/config/vim/plugin/test/IndentAnything/test.js
245
- - lib/utils/config/vim/plugin/vimballPlugin.vim
246
- - lib/utils/config/vim/syntax/Decho.vim
247
- - lib/utils/config/vim/syntax/coffee.vim
248
- - lib/utils/config/vim/syntax/eco.vim
249
- - lib/utils/config/vim/syntax/eruby.vim
250
- - lib/utils/config/vim/syntax/javascript.vim
251
- - lib/utils/config/vim/syntax/ragel.vim
252
- - lib/utils/config/vim/syntax/ruby.vim
253
- - lib/utils/config/vim/syntax/slim.vim
254
- - lib/utils/config/vimrc
255
184
  - lib/utils/editor.rb
256
185
  - lib/utils/file_xt.rb
257
186
  - lib/utils/finder.rb
@@ -279,7 +208,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
279
208
  version: '0'
280
209
  segments:
281
210
  - 0
282
- hash: -1196836903179677605
211
+ hash: 3009475721327574113
283
212
  required_rubygems_version: !ruby/object:Gem::Requirement
284
213
  none: false
285
214
  requirements:
@@ -1,9 +0,0 @@
1
- " Language: CoffeeScript
2
- " Maintainer: Sven Felix Oberquelle <Svelix.Github@gmail.com>
3
- " URL: http://github.com/kchmck/vim-coffee-script
4
- " License: WTFPL
5
-
6
- " Inherit coffee from html so coffeeComment isn't redefined and given higher
7
- " priority than hamlInterpolation.
8
- syn cluster hamlCoffeescript contains=@htmlCoffeeScript
9
- syn region hamlCoffeescriptFilter matchgroup=hamlFilter start="^\z(\s*\):coffeescript\s*$" end="^\%(\z1 \| *$\)\@!" contains=@hamlCoffeeScript,hamlInterpolation keepend
@@ -1,11 +0,0 @@
1
- " Language: CoffeeScript
2
- " Maintainer: Mick Koch <kchmck@gmail.com>
3
- " URL: http://github.com/kchmck/vim-coffee-script
4
- " License: WTFPL
5
-
6
- " Syntax highlighting for text/coffeescript script tags
7
- syn include @htmlCoffeeScript syntax/coffee.vim
8
- syn region coffeeScript start=+<script [^>]*type *=[^>]*text/coffeescript[^>]*>+
9
- \ end=+</script>+me=s-1 keepend
10
- \ contains=@htmlCoffeeScript,htmlScriptTag,@htmlPreproc
11
- \ containedin=htmlHead