Skip to content

Commit aed1ec5

Browse files
committed
indent
1 parent 31e014f commit aed1ec5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

indent/svelte.vim

+12
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ if s:use_pug
7272
let &formatoptions = s:save_formatoptions
7373
endif
7474

75+
if s:use_stylus
76+
unlet! b:did_indent
77+
runtime! indent/stylus.vim
78+
endif
79+
7580
if s:use_sass
7681
unlet! b:did_indent
7782
runtime! indent/sass.vim
@@ -169,6 +174,9 @@ function! GetSvelteIndent()
169174
elseif s:SynSASS(cursyn)
170175
call s:Log('syntax: sass')
171176
let ind = GetSassIndent()
177+
elseif s:SynStylus(cursyn)
178+
call s:Log('syntax: stylus')
179+
let ind = GetStylusIndent()
172180
elseif s:SynStyle(cursyn)
173181
call s:Log('syntax: style')
174182
let ind = GetCSSIndent()
@@ -297,6 +305,10 @@ function! s:SynTypeScript(syn)
297305
return a:syn ==? 'typescriptSvelteScript'
298306
endfunction
299307

308+
function! s:SynStylus(syn)
309+
return a:syn ==? 'cssStylusSvelteStyle'
310+
endfunction
311+
300312
function! s:SynSASS(syn)
301313
return a:syn ==? 'cssSassSvelteStyle'
302314
endfunction

0 commit comments

Comments
 (0)