From 6e0702bd6672f3882b0ce2ea9d254a8d109eb807 Mon Sep 17 00:00:00 2001 From: Jeremy Cantrell Date: Wed, 9 Jun 2021 13:58:16 -0500 Subject: Add nftables filetype (#715) Co-authored-by: Adam Stankiewicz --- README.md | 1 + packages.yaml | 10 ++++++++++ tests/extensions.vim | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/README.md b/README.md index 04a6fcdb..37d87994 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3