much love
[mu.git] / editor / subx.dte
blobcab7b72db0341dac99c139040aa8eeb7d965e15d
1 # Syntax highlighting for https://gitlab.com/craigbarnes/dte
3 # To install this file, symlink it to ~/.dte/syntax/subx
4 # Then add this line to ~/.dte/rc:
5 #   ft subx subx
7 syntax subx
9 # For improved colorization, add lines like these in your ~/.dte/rc (the
10 # precise colors here assume the default color scheme in a 256-color terminal):
11 #   hi subx.comment0 25 underline
12 #   hi comment 25
13 #   hi subx.comment2 19
14 #   hi subx.comment3 245
15 default comment subx.comment0 subx.comment2 subx.comment3
17 state start code
18     str "# . ." subx.comment3
19     str "# ." subx.comment2
20     str "# -" subx.comment0
21     char # comment
22     char '"' string
23     eat this
25 state comment
26     char "\n" start
27     eat this
29 state subx.comment0
30     char "\n" start
31     eat this
33 state subx.comment2
34     char "\n" start
35     eat this
37 state subx.comment3
38     char "\n" start
39     eat this
41 state string
42     char "\"" start string
43     eat this