| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
|
| 4 |
<language name="GDB Backtrace" section="Other" |
| 5 |
version="3" kateversion="3.4" |
| 6 |
extensions="*.kcrash;*.crash;*.bt" |
| 7 |
mimetype="" |
| 8 |
author="Milian Wolff ([email protected])" license="LGPL"> |
| 9 |
|
| 10 |
<highlighting> |
| 11 |
|
| 12 |
<contexts> |
| 13 |
<context name="apache" attribute="Normal" lineEndContext="#stay"> |
| 14 |
<DetectChar char="#" context="stackframe" firstNonSpace="true" /> |
| 15 |
<IncludeRules context="oneliners" /> |
| 16 |
</context> |
| 17 |
<context name="oneliners" attribute="Normal" lineEndContext="#pop"> |
| 18 |
<StringDetect attribute="Crash" context="#stay" String="[KCrash Handler]" /> |
| 19 |
<StringDetect String="Thread" firstNonSpace="true" context="thread" /> |
| 20 |
<StringDetect String="[Current thread" firstNonSpace="true" context="thread" /> |
| 21 |
</context> |
| 22 |
<context name="stackframe" attribute="Normal" lineEndContext="#stay"> |
| 23 |
<RegExpr attribute="Normal" context="identifier" String="((?:[^ ]|<.+>)+::)?([^ :]+)\s*\(" lookAhead="true" /> |
| 24 |
<Detect2Chars attribute="Normal" char="a" char1="t" context="file" /> |
| 25 |
<StringDetect attribute="Normal" String="from" context="file" /> |
| 26 |
<IncludeRules context="oneliners" /> |
| 27 |
</context> |
| 28 |
<context name="identifier" attribute="Normal" lineEndContext="#stay" dynamic="true"> |
| 29 |
<StringDetect attribute="QualifiedIdentifier" String="%1" dynamic="true" /> |
| 30 |
<StringDetect attribute="Function" String="%2" dynamic="true" /> |
| 31 |
<RegExpr attribute="Crash" String="\b0x0\b" /> |
| 32 |
<DetectChar char=")" context="#pop" /> |
| 33 |
</context> |
| 34 |
<context name="file" attribute="File" lineEndContext="#pop#pop"> |
| 35 |
<DetectChar char=":" context="#pop#pop" attribute="Normal" /> |
| 36 |
</context> |
| 37 |
<context name="thread" attribute="Thread" lineEndContext="#pop"> |
| 38 |
</context> |
| 39 |
</contexts> |
| 40 |
|
| 41 |
<itemDatas> |
| 42 |
<itemData name="Normal" defStyleNum="dsNormal" spellChecking="false" /> |
| 43 |
<itemData name="Crash" defStyleNum="dsError" spellChecking="false" underline="false" bold="true" /> |
| 44 |
<itemData name="QualifiedIdentifier" defStyleNum="dsOthers" spellChecking="false" /> |
| 45 |
<itemData name="Function" defStyleNum="dsFunction" spellChecking="false" bold="true" /> |
| 46 |
<itemData name="File" defStyleNum="dsDataType" spellChecking="false" /> |
| 47 |
<itemData name="Thread" defStyleNum="dsBaseN" spellChecking="false" /> |
| 48 |
</itemDatas> |
| 49 |
</highlighting> |
| 50 |
|
| 51 |
</language> |
| 52 |
|
| 53 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |