Skip to content

Commit

Permalink
split contstant.number rule
Browse files Browse the repository at this point in the history
  • Loading branch information
theredcmdcraft committed Dec 28, 2024
1 parent 5b2a3f0 commit ff66320
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/syntax/nftables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ rules:
- statement: "\\b(accept|drop|goto|jump|log|masquerade|reject|limit|queue)\\b"
- preproc: "\\b(add|define|flush|include|delete)\\b"
- symbol.operator: "[<>.&|^!=:;,@]|\\b(and|ge|gt|le|lt|or|xor)\\b"
# string constants
- constant.string: '([\+\-\*/][\"]{1})(.*)([\"]{1})'
- constant.string:
start: "\""
end: "\""
# Integer Constants
- constant.number: "\\b((0x)?[0-9a-fA-F.]+)\\b"
- constant.number: "\\b([0-9]+)\\b"
- constant.number: "\\b(0x[0-9a-fA-F]+)\\b"
- identifier.var: "[$@][a-zA-Z_.][a-zA-Z0-9_/.-]*"
- comment: "(^|[[:space:]])#([^{].*)?$"
- indent-char.whitespace: "[[:space:]]+$"
Expand Down

0 comments on commit ff66320

Please sign in to comment.