]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/lfe.micro
Use Go regex word boundaries
[micro.git] / runtime / syntax / lfe.micro
1 syntax "lfe" "lfe$" "\.lfe$"
2
3 # Parens are everywhere!
4 color statement "\("
5 color statement "\)"
6
7 # Good overrides for LFE in particular
8 color type "defun|define-syntax|define|defmacro|defmodule|export"
9
10 # Dirty base cases stolen from the generic lisp syntax
11 color constant "\ [A-Za-z][A-Za-z0-9_-]+\ "
12 color symbol.operator "\(([-+*/<>]|<=|>=)|'"
13 color constant.number "\b[0-9]+\b"
14 color constant.string "\"(\\.|[^"])*\""
15 color special "['|`][A-Za-z][A-Za-z0-9_-]+"
16 color constant.string "\\.?"
17 color comment "(^|[[:space:]]);.*"
18
19 # Some warning colors because our indents are wrong.
20 color indent-char.whitespace "[[:space:]]+$"
21 color indent-char "     + +| +  +"