Skip to content

Commit de73f6d

Browse files
committed
Highlight HTTP basic auth controller methods
1 parent 63c240f commit de73f6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

after/syntax/ruby/rails.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ endif
8484

8585
if s:path =~# '/app/controllers/.*\.rb$'
8686
syn keyword rubyHelper params request response session headers cookies flash
87-
syn keyword rubyMacro protect_from_forgery skip_forgery_protection
87+
syn keyword rubyMacro protect_from_forgery skip_forgery_protection http_basic_authenticate_with
8888
syn match rubyMacro '\<respond_to\>\ze[( ] *[:*]'
8989
syn match rubyResponse '\<respond_to\>\ze[( ] *\%([&{]\|do\>\)'
9090
syn keyword rubyResponse render head redirect_to redirect_back respond_with send_data send_file
91+
syn keyword rubyResponse authenticate_or_request_with_http_basic authenticate_with_http_basic http_basic_authenticate_or_request_with request_http_basic_authentication
9192
endif
9293

9394
let b:rails_path = s:path

0 commit comments

Comments
 (0)