vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 45253cd24bdfafc6833bfc5673520b4ec5c33c54 parent 2928f3ac7c8d51bc0f6f50db7c856f658ba6108a Author: Philip Linde <plinde@proceranetworks.com> Date: Mon, 12 Jan 2015 19:36:48 +0100 Change ledger syntax regex to work with BSD regex Diffstat:
| M | config.def.h | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/config.def.h b/config.def.h @@ -1263,16 +1263,16 @@ static Syntax syntaxes[] = {{ "^[;#].*", &colors[COLOR_COMMENT], },{ /* value tag */ - "( |\t|^ )+?; :([^ ][^:]*:)+[ \\t]*$", + "( |\t|^ )*; :([^ ][^:]*:)+[ \\t]*$", &colors[COLOR_DATATYPE], },{ /* typed tag */ - "( |\t|^ )+?; [^:]+::.*", + "( |\t|^ )*; [^:]+::.*", &colors[COLOR_DATATYPE], },{ /* tag */ - "( |\t|^ )+?; [^:]+:.*", + "( |\t|^ )*; [^:]+:.*", &colors[COLOR_TYPE], },{ /* metadata */ - "( |\t|^ )+?;.*", + "( |\t|^ )*;.*", &colors[COLOR_CONSTANT], },{ /* date */ "^[0-9][^ \t]+", @@ -1281,7 +1281,7 @@ static Syntax syntaxes[] = {{ "^[ \t]+[a-zA-Z:'!*()%&]+", &colors[COLOR_IDENTIFIER] },{ /* amount */ - "( |\t)[^;]+?", + "( |\t)[^;]*", &colors[COLOR_LITERAL], },{ /* automated transaction */ "^[=~].*",