From f555e413a961fe48deb11b20d2bcf24a1c2eb1eb Mon Sep 17 00:00:00 2001 From: cn Date: Sun, 13 Nov 2011 14:35:44 +0100 Subject: [PATCH] Add JOEs original TeX highlighter --- tex.jsf | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tex.jsf diff --git a/tex.jsf b/tex.jsf new file mode 100644 index 0000000..d15d901 --- /dev/null +++ b/tex.jsf @@ -0,0 +1,52 @@ +# joe [La]TeX syntax highlighting + +=Idle +=Comment green +=Keyword bold +=Mathmode cyan +=Brace magenta +=Parameter bold blue + +:idle Idle + * idle + "%" comment recolor=-1 + "$" math recolor=-1 + "\\" command recolor=-1 + "{[]}" brace recolor=-1 + "#" parameter recolor=-1 + +:comment Comment + * comment + "\n" idle + +:math Mathmode + * math + "\\" math_command recolor=-1 + "{[]}" math_brace recolor=-1 + "$" idle + +:command Keyword + * idle + "a-zA-Z@" command2 + +:command2 Keyword + * idle noeat + "a-zA-Z@" command2 + +:math_command Keyword + * math + "a-zA-Z@" math_command2 + +:math_command2 Keyword + * math noeat + "a-zA-Z@" math_command2 + +:parameter Parameter + * idle noeat + "0-9" idle + +:brace Brace + * idle noeat + +:math_brace Brace + * math noeat