| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<language name="x.org Configuration" section="Configuration" extensions="xorg.conf" mimetype="" version="4" kateversion="5.0" author="Jan Janssen ([email protected])" license="LGPL"> |
| 4 |
|
| 5 |
<highlighting> |
| 6 |
<contexts> |
| 7 |
<context name="xorg" attribute="Normal Text" lineEndContext="#stay"> |
| 8 |
<StringDetect String="Section" attribute="Section" context="Section" beginRegion="Section" insensitive="true" /> |
| 9 |
<DetectChar char="#" context="Comment" /> |
| 10 |
</context> |
| 11 |
|
| 12 |
<context name="Section" attribute="Normal Text" lineEndContext="#stay"> |
| 13 |
<RangeDetect char=""" char1=""" attribute="Section Name" context="Section Content" /> |
| 14 |
<RangeDetect char="'" char1="'" attribute="Section Name" context="Section Content" /> |
| 15 |
<DetectIdentifier attribute="Alert" /> |
| 16 |
<DetectChar char="#" context="Comment" /> |
| 17 |
</context> |
| 18 |
|
| 19 |
<context name="Section Content" attribute="Normal Text" lineEndContext="#stay"> |
| 20 |
<StringDetect String="EndSection" attribute="Section" context="#pop#pop" endRegion="Section" insensitive="true" /> |
| 21 |
<StringDetect String="EndSubSection" attribute="Section" context="#pop#pop" endRegion="SubSection" insensitive="true" /> |
| 22 |
<StringDetect String="SubSection" attribute="Section" context="Section" beginRegion="SubSection" insensitive="true" /> |
| 23 |
<RegExpr String="\b\w+\b" context="Keyword" /> |
| 24 |
<DetectChar char="#" context="Comment" /> |
| 25 |
</context> |
| 26 |
|
| 27 |
<context name="Keyword" attribute="Keyword" lineEndContext="#pop"> |
| 28 |
<RangeDetect attribute="Value" char=""" char1=""" /> |
| 29 |
<RangeDetect attribute="Value" char="'" char1="'" /> |
| 30 |
<Float attribute="Float" /> |
| 31 |
<Int attribute="Int" /> |
| 32 |
<RegExpr attribute="Value2" String="[\w\d]+" /> |
| 33 |
<DetectChar char="#" context="Comment" /> |
| 34 |
</context> |
| 35 |
|
| 36 |
<context name="Comment" attribute="Comment" lineEndContext="#pop"> |
| 37 |
<DetectSpaces /> |
| 38 |
<IncludeRules context="##Comments" /> |
| 39 |
<DetectIdentifier /> |
| 40 |
</context> |
| 41 |
</contexts> |
| 42 |
|
| 43 |
|
| 44 |
<itemDatas> |
| 45 |
<itemData name="Normal Text" defStyleNum="dsNormal" /> |
| 46 |
<itemData name="Section" defStyleNum="dsFunction" /> |
| 47 |
<itemData name="Section Name" defStyleNum="dsString" /> |
| 48 |
<itemData name="Value" defStyleNum="dsDataType" /> |
| 49 |
<itemData name="Keyword" defStyleNum="dsKeyword" /> |
| 50 |
<itemData name="Alert" defStyleNum="dsError" /> |
| 51 |
<itemData name="Int" defStyleNum="dsDecVal" /> |
| 52 |
<itemData name="Value2" defStyleNum="dsOthers" /> |
| 53 |
<itemData name="Float" defStyleNum="dsFloat" /> |
| 54 |
<itemData name="Comment" defStyleNum="dsComment" /> |
| 55 |
</itemDatas> |
| 56 |
</highlighting> |
| 57 |
|
| 58 |
|
| 59 |
<general> |
| 60 |
<comments> |
| 61 |
<comment name="singleLine" start="#" /> |
| 62 |
</comments> |
| 63 |
</general> |
| 64 |
|
| 65 |
</language> |
| 66 |
<!-- kate: replace-tabs on; tab-width 1; indent-width 1; --> |