mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:9.1.1468: filetype: bright(er)script files are not recognized
Problem:  filetype: bright(er)script files are not recognized
Solution: detect *.bs files as brighterscript filetype and *.brs as
          brightscript filetype, include filetype plugins (Riley Bruins)
closes: vim/vim#17566
03e5ee25fd
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
			
			
This commit is contained in:
		 Christian Clason
					Christian Clason
				
			
				
					committed by
					
						 Christian Clason
						Christian Clason
					
				
			
			
				
	
			
			
			 Christian Clason
						Christian Clason
					
				
			
						parent
						
							2379fb053a
						
					
				
				
					commit
					487112d674
				
			
							
								
								
									
										11
									
								
								runtime/ftplugin/brighterscript.vim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								runtime/ftplugin/brighterscript.vim
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | |||||||
|  | " Vim filetype plugin | ||||||
|  | " Language:	Brighterscript | ||||||
|  | " Maintainer:	Riley Bruins <ribru17@gmail.com> | ||||||
|  | " Last Change:	2025 Jun 17 | ||||||
|  |  | ||||||
|  | if exists('b:did_ftplugin') | ||||||
|  |   finish | ||||||
|  | endif | ||||||
|  | let b:did_ftplugin = 1 | ||||||
|  |  | ||||||
|  | runtime! ftplugin/brightscript.vim | ||||||
							
								
								
									
										13
									
								
								runtime/ftplugin/brightscript.vim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								runtime/ftplugin/brightscript.vim
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | |||||||
|  | " Vim filetype plugin | ||||||
|  | " Language:	Brightscript | ||||||
|  | " Maintainer:	Riley Bruins <ribru17@gmail.com> | ||||||
|  | " Last Change:	2025 Jun 17 | ||||||
|  |  | ||||||
|  | if exists('b:did_ftplugin') | ||||||
|  |   finish | ||||||
|  | endif | ||||||
|  | let b:did_ftplugin = 1 | ||||||
|  |  | ||||||
|  | setl comments=:' commentstring='\ %s | ||||||
|  |  | ||||||
|  | let b:undo_ftplugin = 'setl com< cms<' | ||||||
| @@ -258,6 +258,8 @@ local extension = { | |||||||
|   bl = 'blank', |   bl = 'blank', | ||||||
|   blp = 'blueprint', |   blp = 'blueprint', | ||||||
|   bp = 'bp', |   bp = 'bp', | ||||||
|  |   bs = 'brighterscript', | ||||||
|  |   brs = 'brightscript', | ||||||
|   bsd = 'bsdl', |   bsd = 'bsdl', | ||||||
|   bsdl = 'bsdl', |   bsdl = 'bsdl', | ||||||
|   bst = 'bst', |   bst = 'bst', | ||||||
|   | |||||||
| @@ -142,6 +142,8 @@ func s:GetFilenameChecks() abort | |||||||
|     \ 'blank': ['file.bl'], |     \ 'blank': ['file.bl'], | ||||||
|     \ 'blueprint': ['file.blp'], |     \ 'blueprint': ['file.blp'], | ||||||
|     \ 'bp': ['Android.bp'], |     \ 'bp': ['Android.bp'], | ||||||
|  |     \ 'brighterscript': ['file.bs'], | ||||||
|  |     \ 'brightscript': ['file.brs'], | ||||||
|     \ 'bsdl': ['file.bsd', 'file.bsdl'], |     \ 'bsdl': ['file.bsd', 'file.bsdl'], | ||||||
|     \ 'bst': ['file.bst'], |     \ 'bst': ['file.bst'], | ||||||
|     \ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'], |     \ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'], | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user