Skip to content

Commit 936c4a1

Browse files
committed
Update helpers for Rails 7.0
1 parent 03b45fc commit 936c4a1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

after/syntax/ruby/rails.vim

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,25 @@ if s:path =~# '/app/helpers/.*_helper\.rb$\|/app/views/'
5555
let s:autogenerated_helpers = '
5656
\ action_name asset_path asset_url atom_feed audio_path audio_tag audio_url auto_discovery_link_tag
5757
\ button_tag button_to
58-
\ cache cache_fragment_name cache_if cache_unless capture cdata_section check_box check_box_tag collection_check_boxes collection_radio_buttons collection_select color_field color_field_tag compute_asset_extname compute_asset_host compute_asset_path concat content_for content_for? content_tag content_tag_for controller controller_name controller_path convert_to_model cookies csp_meta_tag csrf_meta_tag csrf_meta_tags current_cycle current_page? cycle
59-
\ date_field date_field_tag date_select datetime_field datetime_field_tag datetime_local_field datetime_local_field_tag datetime_select debug distance_of_time_in_words distance_of_time_in_words_to_now div_for dom_class dom_id
58+
\ cache cache_fragment_name cache_if cache_unless caching? capture cdata_section check_box check_box_tag class_names collection_check_boxes collection_radio_buttons collection_select color_field color_field_tag compute_asset_extname compute_asset_host compute_asset_path concat content_for content_for? content_tag controller controller_name controller_path convert_to_model cookies csp_meta_tag csrf_meta_tag csrf_meta_tags current_cycle current_page? cycle
59+
\ date_field date_field_tag date_select datetime_field datetime_field_tag datetime_local_field datetime_local_field_tag datetime_select debug distance_of_time_in_words distance_of_time_in_words_to_now dom_class dom_id
6060
\ email_field email_field_tag escape_javascript escape_once excerpt
61-
\ favicon_link_tag field_set_tag fields fields_for file_field file_field_tag flash font_path font_url form_for form_tag form_with
61+
\ favicon_link_tag field_id field_name field_set_tag fields fields_for file_field file_field_tag flash font_path font_url form_for form_tag form_with
6262
\ grouped_collection_select grouped_options_for_select
6363
\ headers hidden_field hidden_field_tag highlight
64-
\ image_alt image_path image_submit_tag image_tag image_url
64+
\ image_path image_submit_tag image_tag image_url
6565
\ j javascript_cdata_section javascript_include_tag javascript_path javascript_tag javascript_url
6666
\ l label label_tag link_to link_to_if link_to_unless link_to_unless_current localize
6767
\ mail_to month_field month_field_tag
6868
\ number_field number_field_tag number_to_currency number_to_human number_to_human_size number_to_percentage number_to_phone number_with_delimiter number_with_precision
6969
\ option_groups_from_collection_for_select options_for_select options_from_collection_for_select
70-
\ params password_field password_field_tag path_to_asset path_to_audio path_to_font path_to_image path_to_javascript path_to_stylesheet path_to_video phone_field phone_field_tag pluralize preload_link_tag provide public_compute_asset_path
70+
\ params password_field password_field_tag path_to_asset path_to_audio path_to_font path_to_image path_to_javascript path_to_stylesheet path_to_video phone_field phone_field_tag phone_to pluralize preload_link_tag provide public_compute_asset_path
7171
\ radio_button radio_button_tag range_field range_field_tag raw render request request_forgery_protection_token reset_cycle response
72-
\ safe_concat safe_join sanitize sanitize_css search_field search_field_tag select_date select_datetime select_day select_hour select_minute select_month select_second select_tag select_time select_year session simple_format strip_links strip_tags stylesheet_link_tag stylesheet_path stylesheet_url submit_tag
73-
\ t tag telephone_field telephone_field_tag text_area text_area_tag text_field text_field_tag time_ago_in_words time_field time_field_tag time_select time_tag time_zone_options_for_select time_zone_select to_sentence translate truncate
74-
\ url_field url_field_tag url_for url_to_asset url_to_audio url_to_font url_to_image url_to_javascript url_to_stylesheet url_to_video utf8_enforcer_tag
72+
\ safe_concat safe_join sanitize sanitize_css search_field search_field_tag select_date select_datetime select_day select_hour select_minute select_month select_second select_tag select_time select_year session simple_format sms_to strip_links strip_tags stylesheet_link_tag stylesheet_path stylesheet_url submit_tag
73+
\ t tag telephone_field telephone_field_tag text_area text_area_tag text_field text_field_tag time_ago_in_words time_field time_field_tag time_select time_tag time_zone_options_for_select time_zone_select to_sentence token_list translate truncate
74+
\ uncacheable! url_field url_field_tag url_for url_to_asset url_to_audio url_to_font url_to_image url_to_javascript url_to_stylesheet url_to_video utf8_enforcer_tag
7575
\ video_path video_tag video_url
76-
\ week_field week_field_tag word_wrap
76+
\ week_field week_field_tag weekday_options_for_select weekday_select word_wrap
7777
\'[1:-1]
7878
exe 'syn match rubyViewHelper "\v<%(' . escape(tr(s:autogenerated_helpers, ' ', '|'), '?') . ')[[:keyword:]!?:]@!"'
7979
syn match rubyViewHelper '\v<select>%([!?:]|\s*[{]|\s*do>|\s*[(]=\s*[&])@!'

0 commit comments

Comments
 (0)