You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.2 KiB
JSON
55 lines
2.2 KiB
JSON
3 years ago
|
{
|
||
|
"aliases": [
|
||
|
"pf.conf"
|
||
|
],
|
||
|
"lexemes": "[a-z0-9_<>-]+",
|
||
|
"keywords": {
|
||
|
"built_in": "block match pass load anchor|5 antispoof|10 set table",
|
||
|
"keyword": "in out log quick on rdomain inet inet6 proto from port os to routeallow-opts divert-packet divert-reply divert-to flags group icmp-typeicmp6-type label once probability recieved-on rtable prio queuetos tag tagged user keep fragment for os dropaf-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robinsource-hash static-portdup-to reply-to route-toparent bandwidth default min max qlimitblock-policy debug fingerprints hostid limit loginterface optimizationreassemble ruleset-optimization basic none profile skip state-defaultsstate-policy timeoutconst counters persistno modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppysource-track global rule max-src-nodes max-src-states max-src-connmax-src-conn-rate overload flushscrub|5 max-mss min-ttl no-df|10 random-id",
|
||
|
"literal": "all any no-route self urpf-failed egress|5 unknown"
|
||
|
},
|
||
|
"contains": [
|
||
|
{
|
||
|
"className": "comment",
|
||
|
"begin": "#",
|
||
|
"end": "$",
|
||
|
"contains": [
|
||
|
{
|
||
|
"begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"
|
||
|
},
|
||
|
{
|
||
|
"className": "doctag",
|
||
|
"begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
|
||
|
"relevance": 0
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"className": "number",
|
||
|
"begin": "\\b\\d+(\\.\\d+)?",
|
||
|
"relevance": 0
|
||
|
},
|
||
|
{
|
||
|
"className": "string",
|
||
|
"begin": "\"",
|
||
|
"end": "\"",
|
||
|
"illegal": "\\n",
|
||
|
"contains": [
|
||
|
{
|
||
|
"begin": "\\\\[\\s\\S]",
|
||
|
"relevance": 0
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"className": "variable",
|
||
|
"begin": "\\$[\\w\\d#@][\\w\\d_]*"
|
||
|
},
|
||
|
{
|
||
|
"className": "variable",
|
||
|
"begin": "<(?!\\\/)",
|
||
|
"end": ">"
|
||
|
}
|
||
|
]
|
||
|
}
|