diff options
author | Gregory Anders <greg@gpanders.com> | 2024-09-17 14:17:51 -0500 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2024-09-17 14:18:51 -0500 |
commit | 9a3f74c4c7fa567bb492cc3604b6baca05c22f1a (patch) | |
tree | ac342e53f11b231db87fe6fdab4780b3f00618af /runtime/syntax | |
parent | 13d6f6cbb2337c1db5b3fceb607d36a2a632dc03 (diff) | |
download | rneovim-9a3f74c4c7fa567bb492cc3604b6baca05c22f1a.tar.gz rneovim-9a3f74c4c7fa567bb492cc3604b6baca05c22f1a.tar.bz2 rneovim-9a3f74c4c7fa567bb492cc3604b6baca05c22f1a.zip |
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: vim/vim#15689
https://github.com/vim/vim/commit/89b9bb4ac8ceb701ebecb8c02aca3d047dff9991
Co-authored-by: Gregory Anders <greg@gpanders.com>
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/salt.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/syntax/salt.vim b/runtime/syntax/salt.vim new file mode 100644 index 0000000000..fdbce2f677 --- /dev/null +++ b/runtime/syntax/salt.vim @@ -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' |