| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language [ |
| 3 |
<!ENTITY variable1 "\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff\.\-]*(\[[a-zA-Z0-9_]*\])*"> |
| 4 |
<!ENTITY variable2 "\$\{[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff\.\-]*(\[[a-zA-Z0-9_]*\])*\}"> |
| 5 |
<!ENTITY variable3 "\$!\{[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff\.\-]*(\[[a-zA-Z0-9_]*\])*\}."> |
| 6 |
<!ENTITY variable4 "\{\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff\.\-]*(\[([0-9]*|"[a-zA-Z_]*")|'[a-zA-Z_]*'|\])*(->[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(\[[a-zA-Z0-9_]*\])*(\[([0-9]*|"[a-zA-Z_]*")|'[a-zA-Z_]*'|\])*)*\}"> |
| 7 |
]> |
| 8 |
<language name="Velocity" version="5" kateversion="5.0" section="Scripts" extensions="*.vm;" mimetype="text/x-velocity-src;text/x-vm-src" author="John Christopher ([email protected])" license=""> |
| 9 |
<highlighting> |
| 10 |
<list name="keywords"> |
| 11 |
<item>#set</item> |
| 12 |
<item>#foreach</item> |
| 13 |
<item>#end</item> |
| 14 |
<item>#if</item> |
| 15 |
<item>#else</item> |
| 16 |
<item>#elseif</item> |
| 17 |
<item>#parse</item> |
| 18 |
<item>#macro</item> |
| 19 |
<item>#stop</item> |
| 20 |
<item>#include</item> |
| 21 |
</list> |
| 22 |
<contexts> |
| 23 |
<context attribute="Normal Text" lineEndContext="#stay" name="Keyword"> |
| 24 |
<keyword attribute="Keyword" context="#stay" String="keywords" /> |
| 25 |
<RegExpr attribute="Variable" context="#stay" String="&variable1;|&variable2;|&variable3;|&variable4;" /> |
| 26 |
<RegExpr attribute="Properties" context="#stay" String="[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff\-]*(\[[a-zA-Z0-9_]*\])*\.[a-zA-Z0-9_\x7f-\xff\-]*" /> |
| 27 |
<AnyChar attribute="Other" context="#stay" String="(),[]" /> |
| 28 |
<Detect2Chars attribute="Comment" context="singleline comment" char="#" char1="#" /> |
| 29 |
<Detect2Chars attribute="Comment" context="multilinecomment" char="#" char1="*" beginRegion="BlockComment" /> |
| 30 |
</context> |
| 31 |
<context attribute="Comment" name="singleline comment" lineEndContext="#pop"> |
| 32 |
<DetectSpaces /> |
| 33 |
<IncludeRules context="##Comments" /> |
| 34 |
</context> |
| 35 |
<context attribute="Comment" lineEndContext="#stay" name="multilinecomment" > |
| 36 |
<DetectSpaces /> |
| 37 |
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="#" endRegion="BlockComment" /> |
| 38 |
<IncludeRules context="##Comments" /> |
| 39 |
</context> |
| 40 |
</contexts> |
| 41 |
<itemDatas> |
| 42 |
<itemData name="Normal Text" defStyleNum="dsNormal" /> |
| 43 |
<itemData name="Keyword" defStyleNum="dsKeyword" /> |
| 44 |
<itemData name="Variable" defStyleNum="dsKeyword" color="#5555FF" selColor="#ffffff" bold="0" italic="0" /> |
| 45 |
<itemData name="Other" defStyleNum="dsOthers" /> |
| 46 |
<itemData name="Properties" defStyleNum="dsNormal" color="#8AC6FF" selColor="#ffffff" bold="0" italic="1"/> |
| 47 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 48 |
</itemDatas> |
| 49 |
</highlighting> |
| 50 |
<general> |
| 51 |
<comments> |
| 52 |
<comment name="singleLine" start="##" /> |
| 53 |
<comment name="multiLine" start="#*" end="*#" region="BlockComment" /> |
| 54 |
</comments> |
| 55 |
<keywords casesensitive="1" weakDeliminator="+"/> |
| 56 |
</general> |
| 57 |
</language> |
| 58 |
<!-- kate: replace-tabs off; --> |