| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<language name="OORS" version="6" kateversion="5.79" section="Sources" extensions="*.oors" author="Gernot Gebhard ([email protected])" license="MIT"> |
| 4 |
<highlighting> |
| 5 |
<list name="oors"> |
| 6 |
<item>allow</item> |
| 7 |
<item>apply</item> |
| 8 |
<item>backtrack</item> |
| 9 |
<item>copy</item> |
| 10 |
<item>condition</item> |
| 11 |
<item>deny</item> |
| 12 |
<item>extends</item> |
| 13 |
<item>graph</item> |
| 14 |
<item>if</item> |
| 15 |
<item>else</item> |
| 16 |
<item>linear</item> |
| 17 |
<item>profile</item> |
| 18 |
<item>rule</item> |
| 19 |
<item>ruleset</item> |
| 20 |
<item>search</item> |
| 21 |
<item>unsafe</item> |
| 22 |
</list> |
| 23 |
<contexts> |
| 24 |
<context name="Main" attribute="Normal Text" lineEndContext="#stay"> |
| 25 |
<keyword attribute="Directive" context="#stay" String="oors" /> |
| 26 |
<IncludeRules context="FindComments" /> |
| 27 |
<DetectSpaces /> |
| 28 |
<DetectChar attribute="Normal Text" context="Ordered" char="[" beginRegion="Ordered" /> |
| 29 |
<DetectChar attribute="Normal Text" context="Unordered" char="{" beginRegion="Unordered" /> |
| 30 |
<Detect2Chars attribute="Content-Type Delimiter" context="Header" char="%" char1="{" beginRegion="Header" /> |
| 31 |
<Detect2Chars attribute="Content-Type Delimiter" context="Header" char="%" char1="%" beginRegion="Header" /> |
| 32 |
</context> |
| 33 |
<context name="Header" attribute="Normal Text" lineEndContext="#stay"> |
| 34 |
<IncludeRules context="FindComments" /> |
| 35 |
<Detect2Chars attribute="Content-Type Delimiter" context="#pop" char="%" char1="}" endRegion="Header" /> |
| 36 |
<Detect2Chars attribute="Content-Type Delimiter" context="#pop" char="%" char1="%" endRegion="Header" /> |
| 37 |
<IncludeRules context="##C++" /> |
| 38 |
</context> |
| 39 |
<context name="Ordered" attribute="Normal Text" lineEndContext="#stay"> |
| 40 |
<keyword attribute="Directive" context="#stay" String="oors" /> |
| 41 |
<IncludeRules context="FindComments" /> |
| 42 |
<IncludeRules context="Accessor" /> |
| 43 |
<DetectChar attribute="Normal Text" context="Ordered" char="[" beginRegion="Ordered" /> |
| 44 |
<DetectChar attribute="Normal Text" context="Unordered" char="{" beginRegion="Unordered" /> |
| 45 |
<DetectChar attribute="Normal Text" context="#pop" char="]" endRegion="Ordered" /> |
| 46 |
<IncludeRules context="##C++" /> |
| 47 |
</context> |
| 48 |
<context name="Unordered" attribute="Normal Text" lineEndContext="#stay"> |
| 49 |
<keyword attribute="Directive" context="#stay" String="oors" /> |
| 50 |
<IncludeRules context="FindComments" /> |
| 51 |
<IncludeRules context="Accessor" /> |
| 52 |
<DetectChar attribute="Normal Text" context="Ordered" char="[" beginRegion="Ordered" /> |
| 53 |
<DetectChar attribute="Normal Text" context="Unordered" char="{" beginRegion="Unordered" /> |
| 54 |
<DetectChar attribute="Normal Text" context="#pop" char="}" endRegion="Unordered" /> |
| 55 |
<IncludeRules context="##C++" /> |
| 56 |
</context> |
| 57 |
<context name="Accessor" attribute="Directive" lineEndContext="#stay"> |
| 58 |
<Detect2Chars attribute="Directive" context="#stay" char="$" char1="$" /> |
| 59 |
<RegExpr attribute="Directive" context="#stay" String="\$-?[_a-zA-Z1-9][_a-zA-Z0-9]*" /> |
| 60 |
</context> |
| 61 |
<context name="FindComments" attribute="Comment" lineEndContext="#stay"> |
| 62 |
<Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="1" /> |
| 63 |
<Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="/" lookAhead="1" /> |
| 64 |
</context> |
| 65 |
<context name="MatchComment" attribute="Normal Text" lineEndContext="#pop" fallthroughContext="#pop"> |
| 66 |
<IncludeRules context="##Doxygen" /> |
| 67 |
<Detect2Chars attribute="Comment" context="#pop!CommentStar" char="/" char1="*" beginRegion="Comment" /> |
| 68 |
<Detect2Chars attribute="Comment" context="#pop!CommentSlash" char="/" char1="/" /> |
| 69 |
</context> |
| 70 |
<context name="CommentStar" attribute="Comment" lineEndContext="#stay"> |
| 71 |
<DetectSpaces /> |
| 72 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/> |
| 73 |
<IncludeRules context="##Comments" /> |
| 74 |
</context> |
| 75 |
<context name="CommentSlash" attribute="Comment" lineEndContext="#stay"> |
| 76 |
<RegExpr attribute="Comment" context="#pop" String="[^\\]$" /> |
| 77 |
<IncludeRules context="##Comments" /> |
| 78 |
</context> |
| 79 |
</contexts> |
| 80 |
<itemDatas> |
| 81 |
<itemData name="Normal Text" defStyleNum="dsNormal" /> |
| 82 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 83 |
<itemData name="Content-Type Delimiter" defStyleNum="dsBaseN" bold="1" /> |
| 84 |
<itemData name="Directive" defStyleNum="dsKeyword"/> |
| 85 |
</itemDatas> |
| 86 |
</highlighting> |
| 87 |
<general> |
| 88 |
<comments> |
| 89 |
<comment name="singleLine" start="//" /> |
| 90 |
<comment name="multiLine" start="/*" end="*/" region="Comment" /> |
| 91 |
</comments> |
| 92 |
<keywords casesensitive="1" /> |
| 93 |
</general> |
| 94 |
</language> |
| 95 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |