specky/syntax/rspec.vim
author Mahlon E. Smith <mahlon@martini.nu>
Wed, 07 Jul 2010 16:47:28 -0700
branchvim-stuff
changeset 15 285603587539
parent 12 a9f1ce3766d1
child 17 54598f9f279c
permissions -rw-r--r--
Initial commit of the HGRev Vim plugin.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
     1
"
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
     2
" specky: syntax highlighting for rspec files.
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
     3
" $Id$
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
     4
"
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
     5
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
     6
runtime! syntax/ruby.vim
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
     7
unlet b:current_syntax
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
     8
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
     9
syntax keyword rspecGroupMethods describe it
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    10
highlight link rspecGroupMethods Type
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    11
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    12
syntax keyword rspecBeforeAndAfter after after_suite_parts append_after append_before before before_suite_parts prepend_after prepend_before
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    13
highlight link rspecBeforeAndAfter Statement
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    14
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    15
syntax keyword rspecMocks mock stub
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    16
highlight link rspecMocks Constant
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    17
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    18
syntax keyword rspecMockMethods and_raise and_return and_throw and_yield build_child called_max_times expected_args invoke matches
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    19
highlight link rspecMockMethods Function
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    20
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    21
syntax keyword rspecKeywords should should_not should_not_receive should_receive
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    22
highlight link rspecKeywords Constant
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    23
12
a9f1ce3766d1 raise_error -> raise_exception
Mahlon E. Smith <mahlon@martini.nu>
parents: 9
diff changeset
    24
syntax keyword rspecMatchers be_a be_a_kind_of be_an be_an_instance_of be_close be_false be_instance_of be_kind_of be_nil be_true change eql equal exist expect have have_at_least have_at_most have_exactly include match matcher raise_error raise_exception respond_to satisfy throw_symbol to to_not wrap_expectation
5
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    25
highlight link rspecMatchers Function
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    26
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    27
syntax keyword rspecMessageExpectation advise any_number_of_times at_least at_most exactly expected_messages_received generate_error ignoring_args matches_at_least_count matches_at_most_count matches_exact_count matches_name_but_not_args negative_expectation_for never once ordered similar_messages times twice verify_messages_received with
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    28
highlight link rspecMessageExpectation Function
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    29
3346aa8d5364 Add snippets and rspec syntax highlights.
mahlon
parents:
diff changeset
    30
let b:current_syntax = "rspec"