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

Nftables improvements #3517

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

theredcmdcraft
Copy link
Contributor

See also old PR: #3325

runtime/syntax/nftables.yaml Show resolved Hide resolved
Comment on lines -14 to 15
- symbol: "[-=/:;,@]"
- symbol: "([-=/:;,@]|[!=])"
- symbol.operator: "[<>.&|^!]|\\b(and|ge|gt|le|lt|or|xor)\\b"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

== and != are comparison operators, so why not adding them to symbol.operator? I even suggest to do the same with - and =.

Example (from C):

- symbol.operator: "[-+*/%=<>.:;,~&|^!?]|\\b(offsetof|sizeof)\\b"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was a Suggestion on the old PR. I will change it later. It will make more sense to add it to the operators

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only gave examples. Never mind...
We should add all operators from symbol to symbol.operator, like -, +, *, /, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am working right now on it, should i move the symbols =, :, ;, , and @ also to symbol.operator? I have now added -, +, *, /.

runtime/syntax/nftables.yaml Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

2 participants