]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/pf.js
1 /*! `pf` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
7 Language: Packet Filter config
8 Description: pf.conf — packet filter configuration file (OpenBSD)
9 Author: Peter Piwowarski <oldlaptop654@aol.com>
10 Website: http://man.openbsd.org/pf.conf
16 className: 'variable',
17 begin: /\$[\w\d#@][\w\d_]*/,
21 className: 'variable',
27 name: 'Packet Filter config',
28 aliases: [ 'pf.conf' ],
30 $pattern: /[a-z0-9_<>-]+/,
31 built_in: /* block match pass are "actions" in pf.conf(5), the rest are
32 * lexically similar top-level commands.
34 'block match pass load anchor|5 antispoof|10 set table',
36 'in out log quick on rdomain inet inet6 proto from port os to route '
37 + 'allow-opts divert-packet divert-reply divert-to flags group icmp-type '
38 + 'icmp6-type label once probability recieved-on rtable prio queue '
39 + 'tos tag tagged user keep fragment for os drop '
40 + 'af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin '
41 + 'source-hash static-port '
42 + 'dup-to reply-to route-to '
43 + 'parent bandwidth default min max qlimit '
44 + 'block-policy debug fingerprints hostid limit loginterface optimization '
45 + 'reassemble ruleset-optimization basic none profile skip state-defaults '
46 + 'state-policy timeout '
47 + 'const counters persist '
48 + 'no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy '
49 + 'source-track global rule max-src-nodes max-src-states max-src-conn '
50 + 'max-src-conn-rate overload flush '
51 + 'scrub|5 max-mss min-ttl no-df|10 random-id',
53 'all any no-route self urpf-failed egress|5 unknown'
56 hljs
.HASH_COMMENT_MODE
,
58 hljs
.QUOTE_STRING_MODE
,
69 hljs
.registerLanguage('pf', hljsGrammar
);