aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/editor-syntax-etc/gedit
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-04-11 20:54:27 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2020-05-20 11:27:26 -0400
commitab84a8f2e98b93faea3b445c07882069df37cc62 (patch)
tree04771995c902efc7ce4ff64775543b7fdebe990f /misc/editor-syntax-etc/gedit
parenthelp & manpages, start work (diff)
syntax highlighting, start work, based on sisu.rb
Diffstat (limited to 'misc/editor-syntax-etc/gedit')
-rw-r--r--misc/editor-syntax-etc/gedit/sisu.lang128
1 files changed, 128 insertions, 0 deletions
diff --git a/misc/editor-syntax-etc/gedit/sisu.lang b/misc/editor-syntax-etc/gedit/sisu.lang
new file mode 100644
index 0000000..b82d5f8
--- /dev/null
+++ b/misc/editor-syntax-etc/gedit/sisu.lang
@@ -0,0 +1,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>