1
0
forked from aniani/vim

patch 9.1.0826: filetype: sway files are not recognized

Problem:  filetype: sway files are not recognized
Solution: detect '*.sw' files as sway filetype, include
          a filetype plugin (Riley Bruins)

References:
 https://github.com/FuelLabs/sway.

Comments taken from their syntax documentation. File extension taken
from the same documentation/GitHub's own recognition of these file types

closes: #15973

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Riley Bruins
2024-11-02 15:44:43 +01:00
committed by Christian Brabandt
parent 26113e5ae3
commit 84b5b1c660
5 changed files with 22 additions and 0 deletions

View File

@@ -2430,6 +2430,9 @@ au BufNewFile,BufRead *.sml setf sml
" Sratus VOS command macro
au BufNewFile,BufRead *.cm setf voscm
" Sway (programming language)
au BufNewFile,BufRead *.sw setf sway
" Swift
au BufNewFile,BufRead *.swift,*.swiftinterface setf swift
au BufNewFile,BufRead *.swift.gyb setf swiftgyb