File: liquidsoap.xml

package info (click to toggle)
liquidsoap 1.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,824 kB
  • sloc: ml: 39,805; python: 956; makefile: 523; sh: 452; xml: 105; perl: 76; lisp: 62; ansic: 53; ruby: 8
file content (131 lines) | stat: -rw-r--r-- 5,131 bytes parent folder | download
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
    <!ENTITY IDENT "[a-zA-Z][a-zA-Z0-9_\.]*">
]>
<language name="Liquidsoap"
          extensions="*.liq"
          mimetype="text/x-liquidsoap"
          section="Sources"
          version="6"
          priority="10"
          kateversion="2.4"
          author="Samuel Mimram (smimram@gmail.com)"
          license="LGPL" >

  <highlighting>
    <list name="Keywords">
      <item>def</item>
      <item>rec</item>
      <item>let</item>
      <item>fun</item>
      <item>begin</item>
      <item>end</item>
      <item>if</item>
      <item>then</item>
      <item>else</item>
      <item>elsif</item>
    </list>

    <list name="Operators">
      <item>==</item>
      <item>and</item>
      <item>or</item>
      <item>not</item>
      <item>ref</item>
      <item>!</item>
    </list>

    <list name="Booleans">
      <item>true</item>
      <item>false</item>
    </list>

    <list name="Types">
      <item>bool</item>
      <item>int</item>
      <item>float</item>
      <item>string</item>
    </list>

    <list name="Annotation">
      <item>@param</item>
      <item>@category</item>
      <item>@flag</item>
    </list>

    <contexts>
      <context name="Default" lineEndContext="#stay" attribute="Normal">
        <!-- Comments. -->
        <RegExpr String="#!.*$" context="#stay" attribute="SheBang" />
        <RegExpr String="#.*$"  context="#stay" attribute="Comment" />

        <!-- Preprocessor. -->
        <RegExpr String="^%.*$" context="#stay" firstNonSpace="true" attribute="Directive"/>

        <!-- Strings. -->
        <DetectChar char="&quot;" context="String" attribute="String" />

        <!-- Identifiers and keywords. -->
        <keyword String="Keywords"                 context="#stay" attribute="Keyword" />
        <keyword String="Operators"                context="#stay" attribute="Operator" />
        <keyword String="Booleans"                 context="#stay" attribute="Boolean" />
        <!-- <keyword String="Types"                    context="#stay" attribute="Type" /> -->
        <keyword String="Annotation"               context="#stay" attribute="Annotation" />
        <RegExpr String="%[a-zA-Z0-9]+"            context="#stay" attribute="Format" />
        <RegExpr String="&IDENT;\("                context="IsFunction" attribute="Function" lookAhead="true" />
        <RegExpr String="~&IDENT;"                 context="#stay" attribute="Label" />
        <RegExpr String="&IDENT;="                 context="IsLabel" attribute="Label" lookAhead="true" />
        <RegExpr String="&IDENT;"                  context="#stay" attribute="Identifier" />

        <!-- Numeric constants. -->
        <RegExpr String="0x[0-9a-f]+" context="#stay" attribute="Hexadecimal" />
        <RegExpr String="-?[0-9]+\.[0-9]*" context="#stay" attribute="Float" />
        <RegExpr String="-?[0-9]+" context="#stay" attribute="Decimal" />
      </context>

      <context name="IsFunction" lineEndContext="#pop" attribute="Function">
        <RegExpr attribute="Function" context="#pop" String="&IDENT;" />
      </context>
      <context name="IsLabel" lineEndContext="#pop" attribute="Label">
        <RegExpr attribute="Label" context="#pop" String="&IDENT;" />
      </context>

      <context name="String" lineEndContext="#stay" attribute="String">
        <DetectChar char="&quot;" context="#pop" attribute="String" />
      </context>
    </contexts>

    <itemDatas>
      <itemData name="Code"                    defStyleNum="dsNormal"   />
      <itemData name="Identifier"              defStyleNum="dsNormal"   />
      <itemData name="Keyword"                 defStyleNum="dsKeyword"  />
      <itemData name="Operator"                defStyleNum="dsKeyword" />
      <!-- <itemData name="Function"                defStyleNum="dsFunction" /> -->
      <!-- <itemData name="Type"                    defStyleNum="dsDataType" /> -->
      <itemData name="Function"                defStyleNum="dsDataType" />
      <itemData name="Label"                   defStyleNum="dsVariable" />

      <itemData name="Decimal"                 defStyleNum="dsDecVal"   />
      <itemData name="Boolean"                 defStyleNum="dsDecVal"   />
      <itemData name="Hexadecimal"             defStyleNum="dsBaseN"   />
      <itemData name="Float"                   defStyleNum="dsFloat"    />
      <itemData name="String"                  defStyleNum="dsString"   />

      <itemData name="Directive"               defStyleNum="dsOthers"   />
      <itemData name="SheBang"                 defStyleNum="dsOthers"   />
      <itemData name="Format"                  defStyleNum="dsOthers"   />

      <itemData name="Comment"                 defStyleNum="dsComment"  />
      <itemData name="Annotation"              defStyleNum="dsAnnotation" />
    </itemDatas>
  </highlighting>

  <general>
    <keywords casesensitive="true" />
    <comments>
      <comment name="singleLine" start="#"/>
    </comments>
  </general>
</language>
<!-- kate: space-indent on; indent-width 2; replace-tabs on; -->