30 lines
478 B
Plaintext
30 lines
478 B
Plaintext
|
# 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
|