diff options
author | Milian Wolff <mail@milianw.de> | 2011-03-04 12:15:19 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2011-03-04 12:33:37 +0100 |
commit | 00df3b718ed3d04b2dd587fce9939a8a02302bb8 (patch) | |
tree | 6195d2c7311d0903ed0e5f17af53cf3d1d7402ac /share/qtcreator/generic-highlighter | |
parent | 6ee9d06737513a925ebd2cbba711fd4d1d7af756 (diff) | |
download | qt-creator-00df3b718ed3d04b2dd587fce9939a8a02302bb8.tar.gz |
Add valgrind suppression syntax highlighting file.
Merge-request: 260
Reviewed-by: hjk <qtc-committer@nokia.com>
Diffstat (limited to 'share/qtcreator/generic-highlighter')
-rw-r--r-- | share/qtcreator/generic-highlighter/valgrind-suppression.xml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/share/qtcreator/generic-highlighter/valgrind-suppression.xml b/share/qtcreator/generic-highlighter/valgrind-suppression.xml new file mode 100644 index 0000000000..2015d8e71e --- /dev/null +++ b/share/qtcreator/generic-highlighter/valgrind-suppression.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "language.dtd"> +<language name="Valgrind Suppression" section="Other" extensions="*.supp;" mimetype="text/plain" version="1.0" kateversion="2.0" author="Milian Wolff (mail@milianw.de)" license="LGPL"> +<highlighting> +<contexts> + <context name="File" attribute="Normal Text" lineEndContext="#stay"> + <DetectChar char="#" attribute="Comment" context="Comment" firstNonSpace="true" /> + <DetectChar char="{" attribute="Normal Text" context="Rule" firstNonSpace="true" /> + </context> + + <context name="Rule" attribute="Normal Text" lineEndContext="#stay" > + <RegExpr attribute="RuleName" String="^[^\}]+$" context="Rule2" /> + <DetectChar char="}" attribute="Normal Text" context="#pop" firstNonSpace="true" /> + </context> + + <context name="Rule2" attribute="Normal Text" lineEndContext="#stay" > + <RegExpr attribute="ErrorKind" String="\w+:\w+" context="Rule3" /> + <DetectChar char="}" attribute="Normal Text" context="#pop#pop" firstNonSpace="true" /> + </context> + + <context name="Rule3" attribute="Normal Text" lineEndContext="#stay" > + <RegExpr attribute="FrameKind" String="fun:|obj:|\.\.\." context="#stay" /> + <DetectChar char="}" attribute="Normal Text" context="#pop#pop#pop" firstNonSpace="true" /> + </context> + + <context name="Comment" attribute="Comment" lineEndContext="#pop"> + <DetectSpaces /> + <IncludeRules context="##Alerts" /> + <DetectIdentifier /> + </context> +</contexts> + + +<itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal" /> + <itemData name="RuleName" defStyleNum="dsKeyword" /> + <itemData name="Comment" defStyleNum="dsComment" /> + <itemData name="ErrorKind" defStyleNum="dsOthers" /> + <itemData name="FrameKind" defStyleNum="dsFunction" /> +</itemDatas> +</highlighting> + + +<general> + <comments> + <comment name="singleLine" start="#" /> + </comments> + <keywords casesensitive="0" /> +</general> + +</language> |