pf.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "aliases": [
  3. "pf.conf"
  4. ],
  5. "lexemes": "[a-z0-9_<>-]+",
  6. "keywords": {
  7. "built_in": "block match pass load anchor|5 antispoof|10 set table",
  8. "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",
  9. "literal": "all any no-route self urpf-failed egress|5 unknown"
  10. },
  11. "contains": [
  12. {
  13. "className": "comment",
  14. "begin": "#",
  15. "end": "$",
  16. "contains": [
  17. {
  18. "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"
  19. },
  20. {
  21. "className": "doctag",
  22. "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):",
  23. "relevance": 0
  24. }
  25. ]
  26. },
  27. {
  28. "className": "number",
  29. "begin": "\\b\\d+(\\.\\d+)?",
  30. "relevance": 0
  31. },
  32. {
  33. "className": "string",
  34. "begin": "\"",
  35. "end": "\"",
  36. "illegal": "\\n",
  37. "contains": [
  38. {
  39. "begin": "\\\\[\\s\\S]",
  40. "relevance": 0
  41. }
  42. ]
  43. },
  44. {
  45. "className": "variable",
  46. "begin": "\\$[\\w\\d#@][\\w\\d_]*"
  47. },
  48. {
  49. "className": "variable",
  50. "begin": "<(?!\\\/)",
  51. "end": ">"
  52. }
  53. ]
  54. }