From 3503381f4044c45ad336d63af20fbf6a8206dbc4 Mon Sep 17 00:00:00 2001 From: Christian Nicolai Date: Mon, 1 Aug 2011 00:48:52 +0200 Subject: [PATCH] Some experiments with yaml.jsf --- yaml.jsf | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/yaml.jsf b/yaml.jsf index 6b3898e..fb03502 100644 --- a/yaml.jsf +++ b/yaml.jsf @@ -2,12 +2,38 @@ =Idle =Comment green +=BlockDelim bold =Bad bold red :idle Idle * idle "#" line_comment recolor=-1 + "\t" tab_indent + "-" maybe_block1 + "\n" line_start :line_comment Comment * line_comment - "\n" idle + "\n" idle noeat + +:line_start Idle + * idle noeat #dont eat might be the next \n + "#" line_comment recolor=-1 + "\t" tab_indent + "-" maybe_block1 + +# mark whole line as Bad +:tab_indent Bad + * tab_indent + "\n" idle noeat + +:maybe_block1 Idle + * idle noeat #dont eat might be the next \n + "-" maybe_block2 + +:maybe_block2 Idle + * idle noeat #dont eat might be the next \n + "-" block recolor=-3 + +:block BlockDelim + * idle noeat #dont eat might be the next \n