Skip to content

Commit 6e0702b

Browse files
jmcantrellsheerun
andauthored
Add nftables filetype (#715)
Co-authored-by: Adam Stankiewicz <[email protected]>
1 parent 7c474e5 commit 6e0702b

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
132132
- [meson](https://github.com/mesonbuild/meson/tree/master/data/syntax-highlighting/vim) (Meson syntax highlighting for wrap files)
133133
- [mint](https://github.com/IrenejMarc/vim-mint) (Syntax highlighting for mint files)
134134
- [moonscript](https://github.com/leafo/moonscript-vim) (MoonScript syntax highlighting for moon files)
135+
- [nftables](https://github.com/nfnty/vim-nftables) (Syntax highlighting for nftables config files)
135136
- [nginx](https://github.com/chr4/nginx.vim) (Nginx syntax highlighting for nginx, nginxconf and vhost files)
136137
- [nim](https://github.com/zah/nim.vim) (Nim syntax highlighting for nim, nim.cfg, nimble, nimrod and nims files)
137138
- [nix](https://github.com/LnL7/vim-nix) (Nix syntax highlighting for nix files)

packages.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5593,6 +5593,16 @@ filetypes:
55935593
- pattern: '*sway/config'
55945594
description: Sway Configuration
55955595
---
5596+
name: nftables
5597+
remote: nfnty/vim-nftables
5598+
filetypes:
5599+
- name: nftables
5600+
extensions:
5601+
- nft
5602+
patterns:
5603+
- pattern: '*/nftables.conf'
5604+
description: nftables configuration
5605+
---
55965606
name: openscad
55975607
remote: sirtaj/vim-openscad
55985608
filetypes:

tests/extensions.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,11 @@ call TestExtension("conf", "auto.master", "")
391391
" https://github.com/sheerun/vim-polyglot/issues/579
392392
call TestExtension("dart", "reminders.dart", "")
393393

394+
" nftables
395+
call TestExtension("nftables", "foo.nft", "")
396+
call TestExtension("nftables", "nftables.conf", "")
397+
call TestExtension("nftables", "foo", "#!/usr/bin/env nft")
398+
394399
call TestExtension("racket", "empty.rkt", "")
395400

396401
filetype off

0 commit comments

Comments
 (0)