mirror of
https://github.com/zyedidia/micro
synced 2024-09-29 20:54:50 +00:00
Compare commits
4 commits
58d02a7260
...
3ae5f19824
Author | SHA1 | Date | |
---|---|---|---|
3ae5f19824 | |||
0aa2766b66 | |||
4019c17050 | |||
f313140489 |
|
@ -5,13 +5,14 @@ detect:
|
|||
header: "^flush +ruleset"
|
||||
|
||||
rules:
|
||||
- statement: "(chain|define|table)"
|
||||
- type: "\\b(chain|counter|map|ruleset|set|table)\\b"
|
||||
- symbol: "(=)"
|
||||
- diff-modified: "(flush|type|counter)"
|
||||
- special: "\\b(hook|policy|type)\\b"
|
||||
- special: "\\b(icmp|icmpv6|iif|iifname|ip|ip6|oif|oifname|tcp|udp)\\b"
|
||||
- statement: "\\b(accept|define|drop|flush|goto|jump)\\b"
|
||||
- constant.string.char: "(;)"
|
||||
- constant.string: '([\"]{1})(.*)([\"]{1})'
|
||||
- type: "(\\#\\!)"
|
||||
- preproc: "((([$])[a-zA-Z0-9\\_\\-\\+]{1,250})|(([A-Z]{1,})[A-Z\\_]{1,250}))"
|
||||
- identifier.var: "\\b(\\$[a-zA-Z_][a-zA-Z0-9_-]*)\\b"
|
||||
- comment: "(^|[[:space:]])#([^{].*)?$"
|
||||
- indent-char.whitespace: "[[:space:]]+$"
|
||||
- indent-char: " + +| + +"
|
||||
|
|
Loading…
Reference in a new issue