summaryrefslogtreecommitdiffstats
path: root/kate/data/m3u.xml
blob: 6baa4bbab0b736d3f817b67209d56fcc5b4d7580 (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">

<!-- Changelog:

v1.1:
- mimetype korrigiert zu "audio/mpegurl"
- Syntax verbessert

v1.0:
-first Release
-->

<language name="M3U" section="Other" extensions="*.m3u" mimetype="audio/mpegurl" version="1.10" author="Jan Janssen ([email protected])" license="LGPL" >

<highlighting>
<contexts>
 <context name="M3U" attribute="Normal Text" lineEndContext="#stay">
  <StringDetect attribute="M3USpec" context="#pop" String="#EXTM3U" column="0" />
  <StringDetect attribute="EXTINF" context="FindEXTINF" String="#EXTINF" column="0" />
  <RegExpr attribute="Comment" String="#.*$" firstNonSpace="true" />
 </context>

 <context name="FindEXTINF" attribute="Normal Text" lineEndContext="#stay">
  <RegExpr attribute="Length" String=":\d+" />
  <RegExpr attribute="Descr" context="#pop" String=",.*$" />
 </context>
</contexts>

<itemDatas>
 <itemData name="Normal Text" defStyleNum="dsNormal" />
 <itemData name="M3USpec" defStyleNum="dsKeyword"/>
 <itemData name="Comment" defStyleNum="dsComment" />

 <itemData name="EXTINF" defStyleNum="dsOthers" />
 <itemData name="Length" defStyleNum="dsDecVal" />
 <itemData name="Descr" defStyleNum="dsString" />
</itemDatas>
</highlighting>


<general>
 <comments>
  <comment name="singleLine" start="#" />
 </comments>
</general>

</language>