summaryrefslogtreecommitdiffstats
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorPhilip H <47042125+pheiduck@users.noreply.github.com>2024-05-01 18:42:11 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-01 18:42:11 +0200
commit2d919d2744a99c9bb9e79984e85b8e8f5ec14c07 (patch)
treef65c556a0f0ffd757a4233d79431170aad73e98e /runtime/filetype.vim
parent94a05d55459ad19737c1261b1bc9385b330069b5 (diff)
patch 9.1.0386: filetype: stylus files not recognizedv9.1.0386
Problem: filetype: stylus files not recognized Solution: Detect '*.styl' and '*.stylus' as stylus filetype, include indent, filetype and syntax plugin (Philip H) closes: #14656 Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 9af8e455f2..0532c5f514 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -3015,6 +3015,9 @@ au BufNewFile,BufRead .reminders* call s:StarSetf('remind')
" SGML catalog file
au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog')
+" Stylus
+au BufNewFile,BufReadPost *.styl,*.stylus setf stylus
+
" avoid doc files being recognized a shell files
au BufNewFile,BufRead */doc/{,.}bash[_-]completion{,.d,.sh}{,/*} setf text