File: balsa-mail.lang

package info (click to toggle)
balsa 2.6.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,576 kB
  • sloc: ansic: 99,871; xml: 4,934; makefile: 769; sh: 185; awk: 60; python: 34
file content (83 lines) | stat: -rw-r--r-- 3,534 bytes parent folder | download | duplicates (4)
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- mail Language definition to highlight structured phrases and quoted lines
     in messages using FtkSourceview-2.0
     
     This file is part of the Balsa E-Mail Client

     Copyright (C) 1997-2007 Stuart Parmenter and others,
                             See the file AUTHORS for a list.
     Written by Albrecht Dreß <albrecht.dress@arcor.de>

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2, or (at your option) 
     any later version.
 
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of 
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     GNU General Public License for more details.
 
     You should have received a copy of the GNU General Public License
     along with this program; if not, see <https://www.gnu.org/licenses/>.
-->
<language id="balsa" _name="Balsa email body" version="2.0" _section="Others">
  <styles>
    <style id="underbar" _name="Underline"/>
    <style id="bold-face" _name="Bold face"/>
    <style id="emph" _name="Emphasised"/>
    <style id="quote-even" _name="Even quote level"/>
    <style id="quote-odd" _name="Odd quote level"/>
  </styles>
  <definitions>
    <context id="balsa">
      <include>
        <context id="underline">
          <match>(^|[[:space:]])(_[[:alnum:]][^_\n]*[[:alnum:]]_)</match>
          <include>
            <context sub-pattern="2" style-ref="underbar"/>
          </include>
        </context>
        <context id="bold">
          <match>(^|[[:space:]])(\*[[:alnum:]][^*\n]*[[:alnum:]]\*)</match>
          <include>
            <context sub-pattern="2" style-ref="bold-face"/>
          </include>
        </context>
        <context id="emphasise">
          <match>(^|[[:space:]])(/[[:alnum:]][^/\n]*[[:alnum:]]/)</match>
          <include>
            <context sub-pattern="2" style-ref="emph"/>
          </include>
        </context>
        <context id="quote1" style-ref="quote-odd" end-at-line-end="true">
          <start>^&gt; *($|[^ |&gt;:}#\n])</start>
        </context>
        <context id="quote2" style-ref="quote-even" end-at-line-end="true">
          <start>^(&gt; *){2}($|[^ |&gt;:}#\n])</start>
        </context>
        <context id="quote3" style-ref="quote-odd" end-at-line-end="true">
          <start>^(&gt; *){3}($|[^ |&gt;:}#\n])</start>
        </context>
        <context id="quote4" style-ref="quote-even" end-at-line-end="true">
          <start>^(&gt; *){4}($|[^ |&gt;:}#\n])</start>
        </context>
        <context id="quote5" style-ref="quote-odd" end-at-line-end="true">
          <start>^(&gt; *){5}($|[^ |&gt;:}#\n])</start>
        </context>
        <context id="quote6" style-ref="quote-even" end-at-line-end="true">
          <start>^(&gt; *){6}($|[^ |&gt;:}#\n])</start>
        </context>
        <context id="quote7" style-ref="quote-odd" end-at-line-end="true">
          <start>^(&gt; *){7}($|[^ |&gt;:}#\n])</start>
        </context>
        <context id="quote8" style-ref="quote-even" end-at-line-end="true">
          <start>^(&gt; *){8}($|[^ |&gt;:}#\n])</start>
        </context>
        <context id="quote9" style-ref="quote-odd" end-at-line-end="true">
          <start>^(&gt; *){9}($|[^ |&gt;:}#\n])</start>
        </context>
      </include>
    </context>
  </definitions>
</language>