forked from mtorromeo/kate-syntax-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipfw.xml
87 lines (73 loc) · 3.13 KB
/
ipfw.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="IPW Firewall rules" version="1.0" kateversion="2.4" section="Configuration" extensions="rc.firewall.local" author="Massimiliano Torromeo ([email protected])" license="LGPL">
<highlighting>
<list name="rule_actions">
<item>add</item>
</list>
<list name="actions">
<item>allow</item>
<item>pass</item>
<item>drop</item>
<item>check-state</item>
</list>
<list name="protocols">
<item>tcp</item>
<item>udp</item>
<item>ip</item>
<item>icmp</item>
</list>
<list name="modifiers">
<item>setup</item>
<item>keep-state</item>
</list>
<contexts>
<context name="rule_action" attribute="Normal Text" lineEndContext="#stay">
<DetectChar context="comment" char="#" firstNonSpace="1" />
<keyword context="#stay" attribute="Keyword Name" String="rule_actions" />
<RegExpr context="action" String="[\s]*" />
</context>
<context name="action" attribute="Normal Text" lineEndContext="rule_action" >
<DetectChar context="comment" char="#" firstNonSpace="1" />
<keyword context="#stay" attribute="Keyword Name" String="actions" />
<RegExpr context="protocol" String="[\s]*" />
</context>
<context name="protocol" attribute="Normal Text" lineEndContext="rule_action" >
<DetectChar context="comment" char="#" firstNonSpace="1" />
<keyword context="#stay" attribute="Protocol" String="protocols" />
<RegExpr context="filter" String="[\s]*" />
</context>
<context name="filter" attribute="Normal Text" lineEndContext="rule_action" >
<DetectChar context="comment" char="#" firstNonSpace="1" />
<RegExpr context="interface" attribute="Address Identifiers" String="in[\s]+via[\s]+"/>
<RegExpr context="address" attribute="Address Identifiers" String="(from|to)[\s]+"/>
<keyword context="#stay" attribute="Keyword Name" String="modifiers" />
</context>
<context name="address" attribute="Address" lineEndContext="rule_action" >
<DetectChar context="comment" char="#" firstNonSpace="1" />
<RegExpr context="#pop" attribute="Port" String="([\s]+[0-9]+)?[\s]+"/>
</context>
<context name="interface" attribute="Interface" lineEndContext="rule_action" >
<DetectChar context="comment" char="#" firstNonSpace="1" />
<RegExpr context="#pop" String="[\s]*"/>
</context>
<context name="comment" attribute="Comment" lineEndContext="rule_action" >
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Keyword Name" defStyleNum="dsKeyword" bold="false" />
<itemData name="Protocol" defStyleNum="dsOthers" bold="false" />
<itemData name="Address Identifiers" defStyleNum="dsDecVal" bold="false" />
<itemData name="Address" defStyleNum="dsString" bold="false" />
<itemData name="Port" defStyleNum="dsString" bold="true" />
<itemData name="Interface" defStyleNum="dsOthers" bold="false" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#" />
</comments>
</general>
</language>