Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two types of NFT file #317

Open
egberts opened this issue Sep 9, 2022 · 2 comments
Open

Two types of NFT file #317

egberts opened this issue Sep 9, 2022 · 2 comments

Comments

@egberts
Copy link

egberts commented Sep 9, 2022

I noticed that there are basically two types of nft file:

  • command line (add/delete/flush/list)1
  • table/chain nesting

This plugin is doing both or trying to? I'm asking as I'm evaluating VSCode community edition for the first time.

Disclaimer: I maintain the VIM portion of NFTABLE and nailed all the keywords in there: https://github.com/egberts/vim-nftables

@omBratteng
Copy link
Owner

Not exactly sure. I don't work that much with nftables, and just maintain the plugin to ensure new PRs get merged and dependencies are updated from time to time.

@Natolumin
Copy link
Contributor

This plugin is doing both or trying to?

The grammar for this was initially written following the upstream nftables parser grammar, which handles all the input to nft -f

The 2 "styles" are mostly convention and aren't differentiated upstream. The "table/chain nesting" style is a special case of the command line where add is implied if there is no command word at the start of a line, but other than that they're exactly the same grammar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants