aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/syntax-highlighting/data/syntax/valgrind-suppression.xml
blob: 7fe3dd474efd32140664b96241c3b31338f0338c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Valgrind Suppression" section="Other" extensions="*.supp;" mimetype="" version="2" kateversion="2.4" 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>