Skip to content

Commit d74beec

Browse files
committed
Loosen match for Sass filetypes
1 parent 67519c4 commit d74beec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4133,7 +4133,7 @@ function! rails#buffer_syntax() abort
41334133
syn match sprocketsIncluded /\f\+\|"[^"]*"/ contained
41344134
syn match sprocketsIncludedDir /\f\+\|"[^"]*"/ contained skipwhite nextgroup=sprocketsIncluded
41354135
endif
4136-
if &syntax ==# "scss" || &syntax ==# "sass"
4136+
if &syntax =~# "\<s[ac]ss\>"
41374137
syn match sassFunction "\<\%(\%(asset\|image\|font\|video\|audio\|javascript\|stylesheet\)-\%(url\|path\)\)\>(\@=" contained
41384138
syn match sassFunction "\<\asset-data-url\>(\@=" contained
41394139
endif

0 commit comments

Comments
 (0)