about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--mu.dte29
-rw-r--r--subx.dte43
2 files changed, 72 insertions, 0 deletions
diff --git a/mu.dte b/mu.dte
new file mode 100644
index 00000000..b68fab5d
--- /dev/null
+++ b/mu.dte
@@ -0,0 +1,29 @@
+# Syntax highlighting for https://gitlab.com/craigbarnes/dte
+#
+# To install this file, symlink it to ~/.dte/syntax/mu
+# Then add this line to ~/.dte/rc:
+#   ft mu mu
+
+syntax mu
+
+state start code
+    char # comment
+    char '"' string
+    char -b a-z ident
+    eat this
+
+state comment
+    char "\n" start
+    eat this
+
+state string
+    char "\"" start string
+    eat this
+
+state ident
+    char -b a-z this
+    inlist keyword start
+    noeat start
+
+list keyword \
+    fn type var
diff --git a/subx.dte b/subx.dte
new file mode 100644
index 00000000..2f969860
--- /dev/null
+++ b/subx.dte
@@ -0,0 +1,43 @@
+# Syntax highlighting for https://gitlab.com/craigbarnes/dte
+#
+# To install this file, symlink it to ~/.dte/syntax/subx
+# Then add this line to ~/.dte/rc:
+#   ft subx subx
+#
+# I don't know a better way to distribute colorization independent of color
+# theme, so you'll need to define some new colors in ~/.dte/rc. Here are the
+# colors I use, in the default colorscheme for a 256-color terminal:
+#   hi subx.comment0 25 underline
+#   hi comment 25
+#   hi subx.comment2 19
+#   hi subx.comment3 245
+
+syntax subx
+
+state start code
+    str "# . ." subx.comment3
+    str "# ." subx.comment2
+    str "# -" subx.comment0
+    char # comment
+    char '"' string
+    eat this
+
+state comment
+    char "\n" start
+    eat this
+
+state subx.comment0
+    char "\n" start
+    eat this
+
+state subx.comment2
+    char "\n" start
+    eat this
+
+state subx.comment3
+    char "\n" start
+    eat this
+
+state string
+    char "\"" start string
+    eat this
the previous revision' href='/akspecs/ranger/blame/ranger.py?h=v1.1.0&id=5e4496993a297d0c7591084bd54f3df66d4ffe66'>^
5e449699 ^
4d6c426f ^
5e449699 ^
4d6c426f ^

a66c4a26 ^
3de15ddd ^
a66c4a26 ^


f027adc0 ^
5c210a96 ^

3de15ddd ^

5c210a96 ^
fb275079 ^

5c210a96 ^
3d566884 ^
a1d7ed6e ^
3d566884 ^
f8e96a97 ^
465bff73 ^





f027adc0 ^
f8e96a97 ^

0b5c4cbe ^
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