aboutsummaryrefslogtreecommitdiffhomepage
path: root/data/sisu/v2/conf/editor-syntax-etc/gedit/sisu.lang
blob: b82d5f806c82c552b9350bf4ed727ecfa19cd53e (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
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language _name="SiSU" version="1.0" _section="Markup" mimetypes="text/x-ruby">
<!-- SiSU syntax highligting for gedit, place in:
  /usr/share/gtksourceview-1.0/language-specs
or:
  ~/gtksourceview-1.0/language-specs
-->

  <syntax-item _name="Header" style="Data Type">
    <start-regex>^0~\S|^\@\S+:\s</start-regex>
    <end-regex>\n\n</end-regex>
  </syntax-item>

  <pattern-item _name="Bold" style="Keyword" end-at-line-end = "TRUE">
    <regex>^(:[A-C]|[1-6])~[a-zA-Z0-9.?_-]*\s+.+</regex>
  </pattern-item>

  <pattern-item _name="Operators" style="Function">
    <regex>^(!_|_[1-9]|_[1-9]?\*)\s</regex>
  </pattern-item>

  <syntax-item _name="Note Function" style="Function">
    <start-regex>~\{</start-regex>
    <end-regex>\}~</end-regex>
  </syntax-item>

  <syntax-item _name="Bold Function" style="Function">
    <start-regex>[*]\{</start-regex>
    <end-regex>\}[*]</end-regex>
  </syntax-item>

  <syntax-item _name="Exclaim Function" style="Function">
    <start-regex>!\{</start-regex>
    <end-regex>\}!</end-regex>
  </syntax-item>

  <syntax-item _name="Italics Function" style="Function">
    <start-regex>/\{</start-regex>
    <end-regex>\}/</end-regex>
  </syntax-item>

  <syntax-item _name="Underscore Function" style="Function">
    <start-regex>_\{</start-regex>
    <end-regex>\}_</end-regex>
  </syntax-item>

  <syntax-item _name="Supercript Function" style="Function">
    <start-regex>\^{</start-regex>
    <end-regex>\}\^</end-regex>
  </syntax-item>

  <syntax-item _name="Subscript Function" style="Function">
    <start-regex>,{</start-regex>
    <end-regex>\},</end-regex>
  </syntax-item>

  <syntax-item _name="Added Function" style="Function">
    <start-regex>[+]\{</start-regex>
    <end-regex>\}[+]</end-regex>
  </syntax-item>

  <syntax-item _name="Strikethrough Function" style="Function">
    <start-regex>[-]\{</start-regex>
    <end-regex>\}[-]</end-regex>
  </syntax-item>

  <pattern-item _name="Bold Single" style="String">
    <regex>[*]\S+[*]</regex>
  </pattern-item>

  <pattern-item _name="Link" style="String">
    <regex>\{[^}]+\}(https?:\/\/\S+|image)\s</regex>
  </pattern-item>

  <pattern-item _name="Link Internal" style="String">
    <regex>\s\*~\S+</regex>
  </pattern-item>

  <pattern-item _name="Url" style="String">
    <regex>http[s]*:\/\/\S+</regex>
  </pattern-item>

  <pattern-item _name="Url" style="String">
    <regex>^&lt;&lt;\s+\S+\.ss[ti]</regex>
  </pattern-item>

  <line-comment _name="Line Comment" style="Comment">
    <start-regex>^%+\s.</start-regex>
  </line-comment>

  <syntax-item _name="Multiline Code" style="Others">
    <start-regex>^code\{\s*$</start-regex>
    <end-regex>^\}code\s*$</end-regex>
  </syntax-item>

  <syntax-item _name="Multiline Poem" style="Others">
    <start-regex>^poem\{\s*$</start-regex>
    <end-regex>^\}poem\s*$</end-regex>
  </syntax-item>

  <syntax-item _name="Multiline Group" style="Others">
    <start-regex>^group\{\s*$</start-regex>
    <end-regex>^\}group\s*$</end-regex>
  </syntax-item>

  <syntax-item _name="Multiline Alt" style="Others">
    <start-regex>^alt\{\s*$</start-regex>
    <end-regex>^\}alt\s*$</end-regex>
  </syntax-item>

  <pattern-item _name="Page Break" style="Others 2" end-at-line-end = "TRUE">
    <regex>&lt;:(pb|np)&gt;</regex>
  </pattern-item>

  <pattern-item _name="Line Break" style="Others 2" end-at-line-end = "TRUE">
    <regex>&lt;:?br&gt;</regex>
  </pattern-item>

  <pattern-item _name="Footnote Reference" style="Others" end-at-line-end = "TRUE">
    <regex>~\^(\s|$)</regex>
  </pattern-item>

  <pattern-item _name="Footnote Content" style="Others" end-at-line-end = "TRUE">
    <regex>^\^~\s.+</regex>
  </pattern-item>

</language>