diff options
author | Jeremy Cantrell <jmcantrell@gmail.com> | 2021-06-09 13:58:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 20:58:16 +0200 |
commit | 6e0702bd6672f3882b0ce2ea9d254a8d109eb807 (patch) | |
tree | 9b9076f619e96377a869ec3611d5f80d6680fed2 | |
parent | 7c474e5c9218d870dabba00745220dff5aa671b2 (diff) | |
download | vim-polyglot-6e0702bd6672f3882b0ce2ea9d254a8d109eb807.tar.gz vim-polyglot-6e0702bd6672f3882b0ce2ea9d254a8d109eb807.zip |
Add nftables filetype (#715)
Co-authored-by: Adam Stankiewicz <sheerun@sher.pl>
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | packages.yaml | 10 | ||||
-rw-r--r-- | tests/extensions.vim | 5 |
3 files changed, 16 insertions, 0 deletions
@@ -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) diff --git a/packages.yaml b/packages.yaml index b6c65e9e..5912e7ab 100644 --- a/packages.yaml +++ b/packages.yaml @@ -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: diff --git a/tests/extensions.vim b/tests/extensions.vim index ccfbca44..214bfd8a 100644 --- a/tests/extensions.vim +++ b/tests/extensions.vim @@ -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 |