| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<language name="Protobuf" version="9" kateversion="5.0" section="Sources" extensions="*.proto" mimetype="text/x-protobuf" author="Slawomir Mikula ([email protected])" license="LGPL"> |
| 4 |
<highlighting> |
| 5 |
<list name="keywords"> |
| 6 |
<item>message</item> |
| 7 |
<item>required</item> |
| 8 |
<item>optional</item> |
| 9 |
<item>repeated</item> |
| 10 |
<item>packed</item> |
| 11 |
<item>enum</item> |
| 12 |
<item>default</item> |
| 13 |
<item>import</item> |
| 14 |
<item>public</item> |
| 15 |
<item>extensions</item> |
| 16 |
<item>package</item> |
| 17 |
<item>option</item> |
| 18 |
<item>deprecated</item> |
| 19 |
<item>extend</item> |
| 20 |
</list> |
| 21 |
<list name="operators"> |
| 22 |
<item>=</item> |
| 23 |
<item>;</item> |
| 24 |
</list> |
| 25 |
<list name="datatypes"> |
| 26 |
<item>double</item> |
| 27 |
<item>float</item> |
| 28 |
<item>int32</item> |
| 29 |
<item>int64</item> |
| 30 |
<item>uint32</item> |
| 31 |
<item>uint64</item> |
| 32 |
<item>sint32</item> |
| 33 |
<item>sint64</item> |
| 34 |
<item>fixed32</item> |
| 35 |
<item>fixed64</item> |
| 36 |
<item>sfixed32</item> |
| 37 |
<item>sfixed64</item> |
| 38 |
<item>bool</item> |
| 39 |
<item>string</item> |
| 40 |
<item>bytes</item> |
| 41 |
</list> |
| 42 |
|
| 43 |
<contexts> |
| 44 |
<context attribute="Normal Text" lineEndContext="#stay" name="Normal"> |
| 45 |
<DetectSpaces /> |
| 46 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 47 |
<keyword attribute="Operator" context="#stay" String="operators"/> |
| 48 |
<keyword attribute="Data Type" context="#stay" String="datatypes"/> |
| 49 |
<RegExpr attribute="Keyword" context="Imports" String="\b(?:package|import)\b" /> |
| 50 |
<DetectIdentifier /> |
| 51 |
<DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" /> |
| 52 |
<DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" /> |
| 53 |
<DetectChar attribute="String" context="String" char="""/> |
| 54 |
<Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/"/> |
| 55 |
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/> |
| 56 |
<AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/> |
| 57 |
<Float attribute="Float" context="#stay"/> |
| 58 |
<HlCOct attribute="Octal" context="#stay"/> |
| 59 |
<HlCHex attribute="Hex" context="#stay"/> |
| 60 |
<Int attribute="Decimal" context="#stay"/> |
| 61 |
<HlCChar attribute="Char" context="#stay"/> |
| 62 |
<RegExpr attribute="Char" context="#stay" String="'\\u[0-9a-fA-F]{4}'"/> |
| 63 |
</context> |
| 64 |
|
| 65 |
<context attribute="String" lineEndContext="#pop" name="String"> |
| 66 |
<LineContinue attribute="String" context="#stay"/> |
| 67 |
<HlCStringChar attribute="String Char" context="#stay"/> |
| 68 |
<DetectChar attribute="String" context="#pop" char="""/> |
| 69 |
</context> |
| 70 |
|
| 71 |
<context attribute="Normal Text" lineEndContext="#pop" name="Imports"> |
| 72 |
<RegExpr attribute="Imports" context="#pop" String="\s*.*;" /> |
| 73 |
</context> |
| 74 |
|
| 75 |
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1"> |
| 76 |
<LineContinue attribute="Comment" context="#stay"/> |
| 77 |
<DetectSpaces /> |
| 78 |
<IncludeRules context="##Comments" /> |
| 79 |
</context> |
| 80 |
|
| 81 |
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2"> |
| 82 |
<DetectSpaces /> |
| 83 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/> |
| 84 |
<IncludeRules context="##Comments" /> |
| 85 |
</context> |
| 86 |
|
| 87 |
</contexts> |
| 88 |
<itemDatas> |
| 89 |
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> |
| 90 |
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> |
| 91 |
<itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/> |
| 92 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 93 |
<itemData name="Imports" defStyleNum="dsOthers"/> |
| 94 |
|
| 95 |
<itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/> |
| 96 |
<itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/> |
| 97 |
<itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/> |
| 98 |
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/> |
| 99 |
<itemData name="Char" defStyleNum="dsChar" spellChecking="false"/> |
| 100 |
<itemData name="String" defStyleNum="dsString"/> |
| 101 |
<itemData name="String Char" defStyleNum="dsChar"/> |
| 102 |
|
| 103 |
<itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/> |
| 104 |
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/> |
| 105 |
</itemDatas> |
| 106 |
</highlighting> |
| 107 |
<general> |
| 108 |
<comments> |
| 109 |
<comment name="singleLine" start="//" /> |
| 110 |
<comment name="multiLine" start="/*" end="*/" region="Comment" /> |
| 111 |
</comments> |
| 112 |
<keywords casesensitive="1" /> |
| 113 |
</general> |
| 114 |
</language> |
| 115 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |