summaryrefslogtreecommitdiff
path: root/Build/source/texk/gregorio/gregorio-src/contrib/gabc.xml
blob: e84ec8975f2120d01c28c0f7d247af2ecc32d60b (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Elie Roux - elie.roux@telecom-bretagne.eu
     version1.0 - 10 november 2008 -->
<language name="GABC" version="1.10" kateversion="2.4" section="Other" extensions="*.gabc" mimetype="text/plain" casesensitive="1" author="Elie Roux (elie.roux@telecom-bretagne.eu)" license="GPL">
  <highlighting>
    <contexts>
      <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar attribute="Attribute" context="Attribute" char=":"/>
        <StringDetect attribute="Separation" context="Score Text" String="%%" insensitive="FALSE"/>
      </context>
      <context name="Attribute" attribute="Attribute" lineEndContext="#pop">
        <DetectChar attribute="Attribute Name" context="Normal" char=";"/>
      </context>
      <context name="Score Text" attribute="Score Text" lineEndContext="#stay">
        <DetectChar attribute="Notes" context="Notes" char="("/>
        <RangeDetect attribute="Translation" context="#stay" char="[" char1="]"/>
        <RangeDetect attribute="Text Markups" context="#stay" char="&lt;" char1="&gt;"/>
      </context>
      <context name="Notes" attribute="Notes" lineEndContext="#stay">
        <DetectChar attribute="Notes" context="#pop" char=")"/>
        <RegExpr attribute="Notes Base" context="#stay" String="[a-mA-M]+"/>
        <RegExpr attribute="Alterations" context="#stay" String="[&gt;&lt;\~xXyYvVoOwWqQ-Ss\._'1234]+"/>
        <RegExpr attribute="Space" context="#stay" String="[`,;!: /zZ]+"/>
      </context>
    </contexts>
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal"/>
      <itemData name="Attribute" defStyleNum="dsNormal" italic="true"/>
      <itemData name="Separation" defStyleNum="dsNormal" bold="true"/>
      <itemData name="Score Text" defStyleNum="dsNormal" bold="true"/>
      <itemData name="Text Markups" defStyleNum="dsFloat" bold="true"/>
      <itemData name="Translation" defStyleNum="dsNormal" italic="true"/>
      <itemData name="Notes" defStyleNum="dsNormal"/>
      <itemData name="Notes Base" defStyleNum="dsNormal"/>
      <itemData name="Alterations" defStyleNum="dsFloat" italic="true"/>
      <itemData name="Space" defStyleNum="dsString" bold="true"/>
    </itemDatas>
  </highlighting>
</language>