about summary refs log tree commit diff stats
path: root/editor/mu.dte
blob: b68fab5dd757dd9758876c3406bbf950ee8bd14e (plain) (blame)
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
# 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