Add nftables filetype (#715)

Co-authored-by: Adam Stankiewicz <sheerun@sher.pl>
This commit is contained in:
Jeremy Cantrell
2021-06-09 13:58:16 -05:00
committed by GitHub
parent 7c474e5c92
commit 6e0702bd66
3 changed files with 16 additions and 0 deletions

View File

@@ -132,6 +132,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
- [meson](https://github.com/mesonbuild/meson/tree/master/data/syntax-highlighting/vim) (Meson syntax highlighting for wrap files)
- [mint](https://github.com/IrenejMarc/vim-mint) (Syntax highlighting for mint files)
- [moonscript](https://github.com/leafo/moonscript-vim) (MoonScript syntax highlighting for moon files)
- [nftables](https://github.com/nfnty/vim-nftables) (Syntax highlighting for nftables config files)
- [nginx](https://github.com/chr4/nginx.vim) (Nginx syntax highlighting for nginx, nginxconf and vhost files)
- [nim](https://github.com/zah/nim.vim) (Nim syntax highlighting for nim, nim.cfg, nimble, nimrod and nims files)
- [nix](https://github.com/LnL7/vim-nix) (Nix syntax highlighting for nix files)

View File

@@ -5593,6 +5593,16 @@ filetypes:
- pattern: '*sway/config'
description: Sway Configuration
---
name: nftables
remote: nfnty/vim-nftables
filetypes:
- name: nftables
extensions:
- nft
patterns:
- pattern: '*/nftables.conf'
description: nftables configuration
---
name: openscad
remote: sirtaj/vim-openscad
filetypes:

View File

@@ -391,6 +391,11 @@ call TestExtension("conf", "auto.master", "")
" https://github.com/sheerun/vim-polyglot/issues/579
call TestExtension("dart", "reminders.dart", "")
" nftables
call TestExtension("nftables", "foo.nft", "")
call TestExtension("nftables", "nftables.conf", "")
call TestExtension("nftables", "foo", "#!/usr/bin/env nft")
call TestExtension("racket", "empty.rkt", "")
filetype off