mirror of
https://github.com/vim/vim
synced 2025-03-16 06:47:52 +01:00
patch 9.1.0424: filetype: slint files are not recognized
Problem: filetype: slint files are not recognized Solution: Detect '*.slint' files as slint filetype, include basic sling filetype plugin (Riley Bruins) closes: #14808 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
f295050fa5
commit
aa3104b07a
5 changed files with 22 additions and 0 deletions
1
.github/MAINTAINERS
vendored
1
.github/MAINTAINERS
vendored
|
@ -216,6 +216,7 @@ runtime/ftplugin/scss.vim @tpope
|
|||
runtime/ftplugin/sdoc.vim @gpanders
|
||||
runtime/ftplugin/sed.vim @dkearns
|
||||
runtime/ftplugin/sh.vim @dkearns
|
||||
runtime/ftplugin/slint.vim @ribru17
|
||||
runtime/ftplugin/solidity.vim @cothi
|
||||
runtime/ftplugin/solution.vim @dkearns
|
||||
runtime/ftplugin/spec.vim @ignatenkobrain
|
||||
|
|
|
@ -2060,6 +2060,9 @@ au BufNewFile,BufRead *.scala setf scala
|
|||
" SBT - Scala Build Tool
|
||||
au BufNewFile,BufRead *.sbt setf sbt
|
||||
|
||||
" Slint
|
||||
au BufNewFile,BufRead *.slint setf slint
|
||||
|
||||
" SuperCollider
|
||||
au BufNewFile,BufRead *.sc call dist#ft#FTsc()
|
||||
|
||||
|
|
15
runtime/ftplugin/slint.vim
Normal file
15
runtime/ftplugin/slint.vim
Normal file
|
@ -0,0 +1,15 @@
|
|||
" Vim filetype plugin
|
||||
" Language: slint
|
||||
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||
" Last Change: 2024 May 19
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
" Set 'comments' to format dashed lists in comments.
|
||||
" Also include ///, used for Doxygen.
|
||||
setl comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// commentstring=//\ %s
|
||||
|
||||
let b:undo_ftplugin = 'setl com< cms<'
|
|
@ -654,6 +654,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||
slang: ['file.sl'],
|
||||
sage: ['file.sage'],
|
||||
slice: ['file.ice'],
|
||||
slint: ['file.slint'],
|
||||
slpconf: ['/etc/slp.conf', 'any/etc/slp.conf'],
|
||||
slpreg: ['/etc/slp.reg', 'any/etc/slp.reg'],
|
||||
slpspi: ['/etc/slp.spi', 'any/etc/slp.spi'],
|
||||
|
|
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
424,
|
||||
/**/
|
||||
423,
|
||||
/**/
|
||||
|
|
Loading…
Add table
Reference in a new issue