fileTypes shoulda.rb foldingStartMarker (?x)^ (\s*+ (module|class|def |unless|if |case |begin |for|while|until |^=begin |( "(\\.|[^"])*+" # eat a double quoted string | '(\\.|[^'])*+' # eat a single quoted string | [^#"'] # eat all but comments and strings )* ( \s (do|begin|case) | (?<!\$)[-+=&|*/~%^<>~] \s*+ (if|unless) ) )\b (?! [^;]*+ ; .*? \bend\b ) |( "(\\.|[^"])*+" # eat a double quoted string | '(\\.|[^'])*+' # eat a single quoted string | [^#"'] # eat all but comments and strings )* ( \{ (?! [^}]*+ \} ) | \[ (?! [^\]]*+ \] ) ) ).*$ | [#] .*? \(fold\) \s*+ $ # Sune’s special marker foldingStopMarker (?x) ( (^|;) \s*+ end \s*+ ([#].*)? $ | (^|;) \s*+ end \. .* $ | ^ \s*+ [}\]] \s*+ ([#].*)? $ | [#] .*? \(end\) \s*+ $ # Sune’s special marker | ^=end ) keyEquivalent ^~R name Ruby on Rails (Shoulda) patterns include #asserts include #macros include #setup include #context include #should include source.ruby.rails include source.ruby repository asserts match \b(assert[_\w]*)\b name support.function context begin ^\s*(context)\b beginCaptures 1 name keyword.other.context.ruby.shoulda end \b(do)\s*$ endCaptures 1 name keyword.control.start-block.ruby.shoulda name meta.context.ruby.shoulda patterns include source.ruby macros match \b(should_validate_presence_of|should_validate_uniqueness_of|should_not_allow_mass_assignment_of|should_not_allow_values_for|should_allow_values_for|should_ensure_length_in_range|should_ensure_length_at_least|should_ensure_value_in_range|should_validate_numericality_of|should_have_many|should_have_and_belong_to_many|should_have_one|should_belong_to|should_be_restful|should_set_the_flash_to|should_not_set_the_flash|should_assign_to|should_not_assign_to|should_respond_with|should_render_template|should_redirect_to|should_render_a_form|setup|teardown|fixtures|load_all_fixtures|should_have_db_column|should_have_db_columns|should_have_index|should_have_indices|should_validate_acceptance_of|shuold_set_the_flash_to|should_have_readonly_attributes|should_change|should_not_change|should_have_named_scope|should_ensure_length_is|should_filter_params|should_respond_with_content_type|should_route|should_return_from_session)\b name support.shoulda.macro should begin ^\s*(should|should_eventually)\b beginCaptures 1 name keyword.other.should.ruby.shoulda end \b(do)\s*$ endCaptures 1 name keyword.control.start-block.ruby.shoulda name meta.should.ruby.shoulda patterns include source.ruby scopeName source.ruby.rails.shoulda uuid 7ED2CAAB-8CE7-4A09-9E66-1D622C60029B