File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ if s:use_pug
7272 let &formatoptions = s: save_formatoptions
7373endif
7474
75+ if s: use_stylus
76+ unlet ! b: did_indent
77+ runtime ! indent /stylus.vim
78+ endif
79+
7580if 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'
298306endfunction
299307
308+ function ! s: SynStylus (syn )
309+ return a: syn == ? ' cssStylusSvelteStyle'
310+ endfunction
311+
300312function ! s: SynSASS (syn )
301313 return a: syn == ? ' cssSassSvelteStyle'
302314endfunction
You can’t perform that action at this time.
0 commit comments