diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-24 15:10:37 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-24 15:11:17 +0200 |
commit | 7a3df06eb573d36142bd1a8e03c5ce8752d300b3 (patch) | |
tree | 70bfaea8884c374876f607774850a3a51c0cb381 /node_modules/highlight.js/lib/languages/pf.js | |
parent | aca1143cb9eed16cf37f04e475e4257418dd18ac (diff) | |
download | wallet-core-7a3df06eb573d36142bd1a8e03c5ce8752d300b3.tar.xz |
fix build issues and add typedoc
Diffstat (limited to 'node_modules/highlight.js/lib/languages/pf.js')
-rw-r--r-- | node_modules/highlight.js/lib/languages/pf.js | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/node_modules/highlight.js/lib/languages/pf.js b/node_modules/highlight.js/lib/languages/pf.js new file mode 100644 index 000000000..6015185aa --- /dev/null +++ b/node_modules/highlight.js/lib/languages/pf.js @@ -0,0 +1,51 @@ +module.exports = function(hljs) { + var MACRO = { + className: 'variable', + begin: /\$[\w\d#@][\w\d_]*/ + }; + var TABLE = { + className: 'variable', + begin: /<(?!\/)/, end: />/ + }; + var QUOTE_STRING = { + className: 'string', + begin: /"/, end: /"/ + }; + + return { + aliases: ['pf.conf'], + lexemes: /[a-z0-9_<>-]+/, + keywords: { + built_in: /* block match pass are "actions" in pf.conf(5), the rest are + * lexically similar top-level commands. + */ + 'block match pass load anchor|5 antispoof|10 set table', + keyword: + 'in out log quick on rdomain inet inet6 proto from port os to route' + + 'allow-opts divert-packet divert-reply divert-to flags group icmp-type' + + 'icmp6-type label once probability recieved-on rtable prio queue' + + 'tos tag tagged user keep fragment for os drop' + + 'af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin' + + 'source-hash static-port' + + 'dup-to reply-to route-to' + + 'parent bandwidth default min max qlimit' + + 'block-policy debug fingerprints hostid limit loginterface optimization' + + 'reassemble ruleset-optimization basic none profile skip state-defaults' + + 'state-policy timeout' + + 'const counters persist' + + 'no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy' + + 'source-track global rule max-src-nodes max-src-states max-src-conn' + + 'max-src-conn-rate overload flush' + + 'scrub|5 max-mss min-ttl no-df|10 random-id', + literal: + 'all any no-route self urpf-failed egress|5 unknown' + }, + contains: [ + hljs.HASH_COMMENT_MODE, + hljs.NUMBER_MODE, + hljs.QUOTE_STRING_MODE, + MACRO, + TABLE + ] + }; +};
\ No newline at end of file |