mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 9a3f74c4c7
			
		
	
	9a3f74c4c7
	
	
	
		
			
			Problem:  filetype: salt files are not recognized
Solution: Detect '*.sls' files as filetype salt,
          include a syntax script (Gregory Anders)
closes: vim/vim#15689
89b9bb4ac8
Co-authored-by: Gregory Anders <greg@gpanders.com>
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			305 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			305 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
| " Vim syntax file
 | |
| " Maintainer: Gregory Anders
 | |
| " Last Changed: 2024-09-16
 | |
| 
 | |
| if exists('b:current_syntax')
 | |
|   finish
 | |
| endif
 | |
| 
 | |
| " Salt state files are just YAML with embedded Jinja
 | |
| runtime! syntax/yaml.vim
 | |
| unlet! b:current_syntax
 | |
| 
 | |
| runtime! syntax/jinja.vim
 | |
| unlet! b:current_syntax
 | |
| 
 | |
| let b:current_syntax = 'salt'
 |