From 399e3a5ee1e5c5912c2564a9305a8091b3d87e7e Mon Sep 17 00:00:00 2001 From: skovsgaard Date: Sun, 4 Sep 2016 11:11:30 +0200 Subject: [PATCH] Add an LFE syntax file --- runtime/syntax/lfe.micro | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 runtime/syntax/lfe.micro diff --git a/runtime/syntax/lfe.micro b/runtime/syntax/lfe.micro new file mode 100644 index 00000000..3aa61b51 --- /dev/null +++ b/runtime/syntax/lfe.micro @@ -0,0 +1,21 @@ +syntax "lfe" "lfe$" "\.lfe$" + +# Parens are everywhere! +color statement "\(" +color statement "\)" + +# Good overrides for LFE in particular +color type "defun|define-syntax|define|defmacro|defmodule|export" + +# Dirty base cases stolen from the generic lisp syntax +color constant "\ [A-Za-z][A-Za-z0-9_-]+\ " +color statement "\(([-+*/<>]|<=|>=)|'" +color constant.number "\<[0-9]+\>" +color constant.string "\"(\\.|[^"])*\"" +color special "['|`][A-Za-z][A-Za-z0-9_-]+" +color constant.string "\\.?" +color comment "(^|[[:space:]]);.*" + +# Some warning colors because our indents are wrong. +color ,green "[[:space:]]+$" +color ,red " + +| + +"