mirror of
				https://github.com/vim/vim.git
				synced 2025-10-31 09:57:14 -04: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:
		
				
					committed by
					
						 Christian Brabandt
						Christian Brabandt
					
				
			
			
				
	
			
			
			
						parent
						
							f295050fa5
						
					
				
				
					commit
					aa3104b07a
				
			
							
								
								
									
										1
									
								
								.github/MAINTAINERS
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/MAINTAINERS
									
									
									
									
										vendored
									
									
								
							| @@ -216,6 +216,7 @@ runtime/ftplugin/scss.vim		@tpope | |||||||
| runtime/ftplugin/sdoc.vim		@gpanders | runtime/ftplugin/sdoc.vim		@gpanders | ||||||
| runtime/ftplugin/sed.vim		@dkearns | runtime/ftplugin/sed.vim		@dkearns | ||||||
| runtime/ftplugin/sh.vim			@dkearns | runtime/ftplugin/sh.vim			@dkearns | ||||||
|  | runtime/ftplugin/slint.vim		@ribru17 | ||||||
| runtime/ftplugin/solidity.vim		@cothi | runtime/ftplugin/solidity.vim		@cothi | ||||||
| runtime/ftplugin/solution.vim		@dkearns | runtime/ftplugin/solution.vim		@dkearns | ||||||
| runtime/ftplugin/spec.vim		@ignatenkobrain | runtime/ftplugin/spec.vim		@ignatenkobrain | ||||||
|   | |||||||
| @@ -2060,6 +2060,9 @@ au BufNewFile,BufRead *.scala			setf scala | |||||||
| " SBT - Scala Build Tool | " SBT - Scala Build Tool | ||||||
| au BufNewFile,BufRead *.sbt			setf sbt | au BufNewFile,BufRead *.sbt			setf sbt | ||||||
|  |  | ||||||
|  | " Slint | ||||||
|  | au BufNewFile,BufRead *.slint			setf slint | ||||||
|  |  | ||||||
| " SuperCollider | " SuperCollider | ||||||
| au BufNewFile,BufRead *.sc			call dist#ft#FTsc() | 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'], |     slang: ['file.sl'], | ||||||
|     sage: ['file.sage'], |     sage: ['file.sage'], | ||||||
|     slice: ['file.ice'], |     slice: ['file.ice'], | ||||||
|  |     slint: ['file.slint'], | ||||||
|     slpconf: ['/etc/slp.conf', 'any/etc/slp.conf'], |     slpconf: ['/etc/slp.conf', 'any/etc/slp.conf'], | ||||||
|     slpreg: ['/etc/slp.reg', 'any/etc/slp.reg'], |     slpreg: ['/etc/slp.reg', 'any/etc/slp.reg'], | ||||||
|     slpspi: ['/etc/slp.spi', 'any/etc/slp.spi'], |     slpspi: ['/etc/slp.spi', 'any/etc/slp.spi'], | ||||||
|   | |||||||
| @@ -704,6 +704,8 @@ static char *(features[]) = | |||||||
|  |  | ||||||
| static int included_patches[] = | static int included_patches[] = | ||||||
| {   /* Add new patch number below this line */ | {   /* Add new patch number below this line */ | ||||||
|  | /**/ | ||||||
|  |     424, | ||||||
| /**/ | /**/ | ||||||
|     423, |     423, | ||||||
| /**/ | /**/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user