summaryrefslogtreecommitdiffstats
path: root/kate/data/git-rebase.xml
blob: d0197fe9f7822537f0ab050abdb3256e0ff7a7cb (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Git Rebase" version="1.01" kateversion="2.5" section="Other" extensions="git-rebase-todo" license="LGPL" mimetype="text/vnd.git.rebase" author="Orgad Shaneh (orgads@gmail.com)">
  <highlighting>
    <list name="pick">
      <item>p</item>
      <item>pick</item>
    </list>
    <list name="reword">
      <item>r</item>
      <item>reword</item>
    </list>
    <list name="edit">
      <item>e</item>
      <item>edit</item>
    </list>
    <list name="squash">
      <item>s</item>
      <item>squash</item>
    </list>
    <list name="fixup">
      <item>f</item>
      <item>fixup</item>
    </list>
    <list name="exec">
      <item>x</item>
      <item>exec</item>
    </list>
    <contexts>
      <context attribute="Normal Text" lineEndContext="#pop" name="Normal">
    <DetectChar char="#" attribute="Comment" context="Comment" column="0"/>
    <keyword attribute="Pick" context="Commit" String="pick" />
    <keyword attribute="Reword" context="Commit" String="reword" />
    <keyword attribute="Edit" context="Commit" String="edit" />
    <keyword attribute="Squash" context="Commit" String="squash" />
    <keyword attribute="Fixup" context="Commit" String="fixup" />
    <keyword attribute="Exec" context="Commit" String="exec" />
      </context>
      <context attribute="Commit" lineEndContext="#pop" name="Commit">
        <RegExpr attribute="Commit" context="Summary" String="[0-9a-f]{7,40}" />
      </context>
      <context attribute="Summary" lineEndContext="#pop" name="Summary" />
      <context attribute="Comment" lineEndContext="#pop" name="Comment">
        <RegExpr attribute="Commit" context="#stay" String="[0-9a-f]{7,40}" />
      </context>
    </contexts>
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal"/>
      <itemData name="Pick"  defStyleNum="dsKeyword"/>
      <itemData name="Reword"  defStyleNum="dsDecVal"/>
      <itemData name="Edit"  defStyleNum="dsDataType"/>
      <itemData name="Squash"  defStyleNum="dsChar"/>
      <itemData name="Fixup"  defStyleNum="dsBaseN"/>
      <itemData name="Exec"  defStyleNum="dsOthers"/>
      <itemData name="Commit" defStyleNum="dsFunction"/>
      <itemData name="Summary" defStyleNum="dsString"/>
      <itemData name="Comment" defStyleNum="dsComment"/>
    </itemDatas>
  </highlighting>
  <general>
    <comments>
      <comment name="singleLine" start="#"/>
    </comments>
  </general>
</language>