1
0
forked from aniani/vim

patch 9.1.0735: filetype: salt files are not recognized

Problem:  filetype: salt files are not recognized
Solution: Detect '*.sls' files as filetype salt,
          include a syntax script (Gregory Anders)

closes: #15689

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Gregory Anders
2024-09-17 20:16:37 +02:00
committed by Christian Brabandt
parent 202c467bb3
commit 89b9bb4ac8
5 changed files with 23 additions and 0 deletions

16
runtime/syntax/salt.vim Normal file
View File

@@ -0,0 +1,16 @@
" 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'