summaryrefslogtreecommitdiffstats
path: root/kate/data/gdb.xml
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-11 16:14:23 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-11 16:14:23 -0600
commit7439a4b0e05832e047040ab8bf9ef13abd9288b2 (patch)
tree3a15e3033fa66b2d947daa14e6807b39f3dc84d1 /kate/data/gdb.xml
parent783973a7d6910fee50d90fcfaf439ae3bbb15b8c (diff)
downloadtdelibs-7439a4b0e05832e047040ab8bf9ef13abd9288b2.tar.gz
tdelibs-7439a4b0e05832e047040ab8bf9ef13abd9288b2.zip
Update kate synatax highlighting files
This closes Bug 764
Diffstat (limited to 'kate/data/gdb.xml')
-rw-r--r--kate/data/gdb.xml59
1 files changed, 59 insertions, 0 deletions
diff --git a/kate/data/gdb.xml b/kate/data/gdb.xml
new file mode 100644
index 000000000..85f9383ff
--- /dev/null
+++ b/kate/data/gdb.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "language.dtd">
+
+<!-- Changelog:
+
+v1.0:
+- first Release
+-->
+
+<language name="GDB Backtrace" section="Other"
+ version="1.0" kateversion="2.4"
+ extensions="*.kcrash;*.crash;*.bt"
+ mimetype=""
+ author="Milian Wolff (mail@milianw.de)" license="LGPL">
+
+<highlighting>
+
+ <contexts>
+ <context name="apache" attribute="Normal" lineEndContext="#stay">
+ <DetectChar char="#" context="stackframe" firstNonSpace="true" />
+ <IncludeRules context="oneliners" />
+ </context>
+ <context name="oneliners" attribute="Normal" lineEndContext="#pop">
+ <StringDetect attribute="Crash" context="#stay" String="[KCrash Handler]" />
+ <StringDetect String="Thread" firstNonSpace="true" context="thread" />
+ <StringDetect String="[Current thread" firstNonSpace="true" context="thread" />
+ </context>
+ <context name="stackframe" attribute="Normal" lineEndContext="#stay">
+ <RegExpr attribute="Normal" context="identifier" String="((?:[^ ]|&lt;.+&gt;)+::)?([^ :]+)\s*\(" lookAhead="true" />
+ <StringDetect attribute="Normal" String="at" context="file" />
+ <StringDetect attribute="Normal" String="from" context="file" />
+ <IncludeRules context="oneliners" />
+ </context>
+ <context name="identifier" attribute="Normal" lineEndContext="#stay" dynamic="true">
+ <StringDetect attribute="QualifiedIdentifier" String="%1" dynamic="true" />
+ <StringDetect attribute="Function" String="%2" dynamic="true" />
+ <RegExpr attribute="Crash" String="\b0x0\b" />
+ <DetectChar char=")" context="#pop" />
+ </context>
+ <context name="file" attribute="File" lineEndContext="#pop#pop">
+ <DetectChar char=":" context="#pop#pop" attribute="Normal" />
+ </context>
+ <context name="thread" attribute="Thread" lineEndContext="#pop">
+ </context>
+ </contexts>
+
+ <itemDatas>
+ <itemData name="Normal" defStyleNum="dsNormal" spellChecking="false" />
+ <itemData name="Crash" defStyleNum="dsError" spellChecking="false" underline="false" bold="true" />
+ <itemData name="QualifiedIdentifier" defStyleNum="dsOthers" spellChecking="false" />
+ <itemData name="Function" defStyleNum="dsFunction" spellChecking="false" bold="true" />
+ <itemData name="File" defStyleNum="dsDataType" spellChecking="false" />
+ <itemData name="Thread" defStyleNum="dsBaseN" spellChecking="false" />
+ </itemDatas>
+</highlighting>
+
+</language>
+
+<!-- kate: replace-tabs: on; tab-width: 4; indent-width: 4; --> \ No newline at end of file