~ubuntu-branches/ubuntu/vivid/kate/vivid-proposed

« back to all changes in this revision

Viewing changes to part/syntax/data/lpc.xml

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-12-04 16:49:41 UTC
  • mfrom: (1.6.6)
  • Revision ID: package-import@ubuntu.com-20141204164941-l3qbvsly83hhlw2v
Tags: 4:14.11.97-0ubuntu1
* New upstream release
* Update build-deps and use pkg-kde v3 for Qt 5 build
* kate-data now kate5-data for co-installability

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE language SYSTEM "language.dtd">
3
 
 
4
 
<!--
5
 
=============================================================================
6
 
File:        lpc.xml
7
 
URL:         http://www.metamorpher.de/files/lpc.xml
8
 
Description: Syntax Highlighting for Lars Pensjo C (LPC)
9
 
             It is used in Multi User Dungeons which use LDMud as Gamedriver.
10
 
             For more information, see LDMud project: http://www.bearnip.com
11
 
             For best highlighting results, configure colors yourself.
12
 
Author:      Andreas Klauer (Andreas.Klauer@metamorpher.de)
13
 
Changed:     2004-04-26
14
 
License:     Artistic
15
 
=============================================================================
16
 
-->
17
 
 
18
 
 
19
 
<language name="LPC" version="0.76" kateversion="2.4" section="Sources" extensions="*.c;*.h;*.inc;*.o" author="Andreas Klauer (Andreas.Klauer@metamorpher.de)" license="Artistic" >
20
 
 
21
 
  <highlighting>
22
 
 
23
 
    <!-- Keyword Lists: -->
24
 
    <list name="modifiers">
25
 
      <item> private </item>
26
 
      <item> protected </item>
27
 
      <item> static </item>
28
 
      <item> public </item>
29
 
      <item> nomask </item>
30
 
      <item> varargs </item>
31
 
      <item> nosave </item>
32
 
      <item> virtual </item>
33
 
    </list>
34
 
    <list name="types">
35
 
      <item> void </item>
36
 
      <item> int </item>
37
 
      <item> status </item>
38
 
      <item> string </item>
39
 
      <item> object </item>
40
 
      <item> array </item>
41
 
      <item> mapping </item>
42
 
      <item> closure </item>
43
 
      <item> symbol </item>
44
 
      <item> float </item>
45
 
      <item> mixed </item>
46
 
    </list>
47
 
    <list name="keywords">
48
 
      <item> break </item>
49
 
      <item> continue </item>
50
 
      <item> return </item>
51
 
      <item> if </item>
52
 
      <item> else </item>
53
 
      <item> for </item>
54
 
      <item> foreach </item>
55
 
      <item> do </item>
56
 
      <item> while </item>
57
 
      <item> switch </item>
58
 
      <item> case </item>
59
 
      <item> inherit </item>
60
 
      <item> default </item>
61
 
      <item> variables </item>
62
 
      <item> functions </item>
63
 
      <item> publish </item>
64
 
      <item> nolog </item>
65
 
    </list>
66
 
    <list name="attention">
67
 
      <item> FIXME </item>
68
 
      <item> HACK </item>
69
 
      <item> NOTE </item>
70
 
      <item> NOTICE </item>
71
 
      <item> TODO </item>
72
 
      <item> WARNING </item>
73
 
      <item> ### </item>
74
 
    </list>
75
 
 
76
 
    <!-- Parsing Rules: -->
77
 
    <contexts>
78
 
      <context name="Normal" attribute="Default" lineEndContext="#stay">
79
 
        <RegExpr attribute="Region Marker" context="#stay" String="//\s*BEGIN.*$" beginRegion="regionMarker" firstNonSpace="true"/>
80
 
        <RegExpr attribute="Region Marker" context="#stay" String="//\s*END.*$" endRegion="regionMarker" firstNonSpace="true"/>
81
 
        <Detect2Chars attribute="Single-Line comments" context="Comment1" char="/" char1="/" />
82
 
        <Detect2Chars attribute="Multi-Line comments" context="Comment2" char="/" char1="*" beginRegion="blockComment" />
83
 
        <keyword String="modifiers" attribute="Modifier" context="#stay" />
84
 
        <keyword String="types" attribute="Datatype" context="#stay" />
85
 
        <keyword String="keywords" attribute="Keywords" context="#stay" />
86
 
        <DetectChar char="#" context="Preprocessor" attribute="Preprocessor" column="0"/>
87
 
        <Float attribute="Floats" context="#stay">
88
 
          <AnyChar String="fFeE" context="#stay" />
89
 
        </Float>
90
 
        <RegExpr String="0b[01]+" attribute="Binary" context="#stay" />
91
 
        <RegExpr String="0x[0-9a-fA-F]+" attribute="Hexadecimal" context="#stay" />
92
 
        <RegExpr String="0o[0-7]+" attribute="Octal" context="#stay" />
93
 
        <Int attribute="Integer" context="#stay" />
94
 
        <RegExpr String="#'[^\t ][^\t ,);}\]/]*" attribute="Closure" context="#stay" />
95
 
        <DetectChar attribute="Strings" context="String1" char="&quot;" />
96
 
        <HlCStringChar attribute="Char" context="#stay" />
97
 
        <DetectChar attribute="Default" context="#stay" char="{" beginRegion="brace" />
98
 
        <DetectChar attribute="Default" context="#stay" char="}" endRegion="brace" />
99
 
      </context>
100
 
      <context name="Comment1" attribute="Single-Line comments" lineEndContext="#pop">
101
 
        <LineContinue attribute="Single-Line comments" context="#stay" />
102
 
        <keyword attribute="Alert" context="#stay" String="attention" />
103
 
      </context>
104
 
      <context name="Comment2" attribute="Multi-Line comments" lineEndContext="#stay">
105
 
        <Detect2Chars attribute="Multi-Line comments" context="#pop" char="*" char1="/" endRegion="blockComment" />
106
 
        <keyword attribute="Alert" context="#stay" String="attention" />
107
 
      </context>
108
 
      <context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop">
109
 
        <LineContinue attribute="Preprocessor" context="#stay" />
110
 
        <Detect2Chars attribute="Single-Line comments" context="Comment1" char="/" char1="/" />
111
 
        <Detect2Chars attribute="Multi-Line comments" context="Comment2" char="/" char1="*" beginRegion="blockComment" />
112
 
        <keyword String="modifiers" attribute="Modifier" context="#stay" />
113
 
        <keyword String="types" attribute="Datatype" context="#stay" />
114
 
        <keyword String="keywords" attribute="Keywords" context="#stay" />
115
 
        <DetectChar attribute="Preprocessor-Strings" context="String2" char="&quot;" />
116
 
      </context>
117
 
      <context name="String1" attribute="Strings" lineEndContext="#pop">
118
 
        <LineContinue attribute="Default" context="#stay" />
119
 
        <Detect2Chars char="\" char1="\" attribute="Strings" context="#stay" />
120
 
        <Detect2Chars char="\" char1="&quot;" attribute="Strings" context="#stay" />
121
 
        <DetectChar char="&quot;" attribute="Strings" context="#pop" />
122
 
      </context>
123
 
      <context name="String2" attribute="Preprocessor-Strings" lineEndContext="#pop">
124
 
        <LineContinue attribute="Default" context="#stay" />
125
 
        <Detect2Chars char="\" char1="\" attribute="Preprocessor-Strings" context="#stay" />
126
 
        <Detect2Chars char="\" char1="&quot;" attribute="Preprocessor-Strings" context="#stay" />
127
 
        <DetectChar char="&quot;" attribute="Preprocessor-Strings" context="#pop" />
128
 
      </context>
129
 
    </contexts>
130
 
 
131
 
    <!-- Color Settings: -->
132
 
    <itemDatas>
133
 
      <itemData name="Default" defStyleNum="dsNormal" />
134
 
      <itemData name="Single-Line comments" defStyleNum="dsComment" />
135
 
      <itemData name="Multi-Line comments" defStyleNum="dsComment" />
136
 
      <itemData name="Alert" defStyleNum="dsAlert" />
137
 
      <itemData name="Modifier" defStyleNum="dsDataType" />
138
 
      <itemData name="Datatype" defStyleNum="dsDataType" />
139
 
      <itemData name="Keywords" defStyleNum="dsKeyword" />
140
 
      <itemData name="Preprocessor" defStyleNum="dsOthers" />
141
 
      <itemData name="Floats" defStyleNum="dsFloat" />
142
 
      <itemData name="Binary" defStyleNum="dsBaseN" />
143
 
      <itemData name="Hexadecimal" defStyleNum="dsBaseN" />
144
 
      <itemData name="Octal" defStyleNum="dsBaseN" />
145
 
      <itemData name="Integer" defStyleNum="dsDecVal" />
146
 
      <itemData name="Closure" defStyleNum="dsOthers" />
147
 
      <itemData name="Strings" defStyleNum="dsString" />
148
 
      <itemData name="Preprocessor-Strings" defStyleNum="dsString" />
149
 
      <itemData name="Char" defStyleNum="dsChar" />
150
 
      <itemData name="Region Marker" defStyleNum="dsRegionMarker" />
151
 
    </itemDatas>
152
 
  </highlighting>
153
 
 
154
 
  <!-- This is not for highlighting, but for detecting comments.
155
 
       It allows Kate to hide comments if the user wished to do so. -->
156
 
  <general>
157
 
    <comments>
158
 
      <comment name="singleLine" start="//"  />
159
 
      <comment name="multiLine" start="/*" end="*/"  />
160
 
    </comments>
161
 
    <keywords casesensitive="1"  />
162
 
  </general>
163
 
 
164
 
</language>
165
 
<!-- kate: space-indent on; indent-width 2; replace-tabs on; -->
166
 
<!-- === End of file. === -->