Add some syntax keywords for rspec 1.3.0. vim-stuff
authorMahlon E. Smith <mahlon@martini.nu>
Wed, 29 Sep 2010 09:11:49 -0700
branchvim-stuff
changeset 17 54598f9f279c
parent 16 88c3c5bc695a
child 18 bf8f3c788cad
Add some syntax keywords for rspec 1.3.0.
glimpse/build.vim
specky/build.vim
specky/syntax/rspec.vim
--- a/glimpse/build.vim	Wed Jul 07 16:53:39 2010 -0700
+++ b/glimpse/build.vim	Wed Sep 29 09:11:49 2010 -0700
@@ -1,5 +1,5 @@
 let g:vimball_home="."
 e Makefile
-%!grep ^SOURCE
+v/^SOURCE/d
 %s/^SOURCE\s\++\?=\s\+//
 execute '%MkVimball!' . g:plugin_name
--- a/specky/build.vim	Wed Jul 07 16:53:39 2010 -0700
+++ b/specky/build.vim	Wed Sep 29 09:11:49 2010 -0700
@@ -1,5 +1,5 @@
 let g:vimball_home="."
 e Makefile
-%!grep ^SOURCE
+v/^SOURCE/d
 %s/^SOURCE\s\++\?=\s\+//
 execute '%MkVimball!' . g:plugin_name
--- a/specky/syntax/rspec.vim	Wed Jul 07 16:53:39 2010 -0700
+++ b/specky/syntax/rspec.vim	Wed Sep 29 09:11:49 2010 -0700
@@ -6,13 +6,13 @@
 runtime! syntax/ruby.vim
 unlet b:current_syntax
 
-syntax keyword rspecGroupMethods describe it
+syntax keyword rspecGroupMethods describe it its let it_should_behave_like pending
 highlight link rspecGroupMethods Type
 
 syntax keyword rspecBeforeAndAfter after after_suite_parts append_after append_before before before_suite_parts prepend_after prepend_before
 highlight link rspecBeforeAndAfter Statement
 
-syntax keyword rspecMocks mock stub
+syntax keyword rspecMocks mock stub double
 highlight link rspecMocks Constant
 
 syntax keyword rspecMockMethods and_raise and_return and_throw and_yield build_child called_max_times expected_args invoke matches
@@ -28,3 +28,4 @@
 highlight link rspecMessageExpectation Function
 
 let b:current_syntax = "rspec"
+