Skip to content

Commit 5a5c93d

Browse files
committed
Javascript and stylesheet types replace js and css
1 parent 2bf8bc5 commit 5a5c93d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

autoload/rails.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,11 @@ function! s:app_calculate_file_type(path) dict
583583
let r = "task"
584584
elseif f =~ '\<log/.*\.log$'
585585
let r = "log"
586-
elseif e == "css" || e == "js" || e == "html"
586+
elseif e == "css" || e == "sass"
587+
let r = "stylesheet-".e
588+
elseif e == "js"
589+
let r = "javascript"
590+
elseif e == "html"
587591
let r = e
588592
elseif f =~ '\<config/routes\>.*\.rb$'
589593
let r = "config-routes"

0 commit comments

Comments
 (0)