-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
base: master
Are you sure you want to change the base?
Nftables improvements #3517
Conversation
Created nftables syntax highlighting
- symbol: "[-=/:;,@]" | ||
- symbol: "([-=/:;,@]|[!=])" | ||
- symbol.operator: "[<>.&|^!]|\\b(and|ge|gt|le|lt|or|xor)\\b" |
There was a problem hiding this comment.
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):
Line 23 in b3227d6
- symbol.operator: "[-+*/%=<>.:;,~&|^!?]|\\b(offsetof|sizeof)\\b" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 -
, +
, *
, /
.
See also old PR: #3325