From b3b3237391ae9c60860bbdd8fa12dfd73214f692 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 29 Mar 2020 12:48:49 -0700 Subject: 6175 - syntax highlighting for dte https://gitlab.com/craigbarnes/dte --- mu.dte | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 mu.dte (limited to 'mu.dte') 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 -- cgit 1.4.1-2-gfad0