aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Linde <plinde@proceranetworks.com>2015-01-12 19:36:48 +0100
committerPhilip Linde <plinde@proceranetworks.com>2015-01-12 19:36:48 +0100
commit8bccf8cb189ba2afcb1fa0f274d2c104dde09398 (patch)
tree237f43e3d8e1fb3e3c8731e51cb5cfe23b5bfabf
parentf6b8cede914ca2e3c2d1b389b81d4cf3e5f33bff (diff)
downloadvis-8bccf8cb189ba2afcb1fa0f274d2c104dde09398.tar.gz
vis-8bccf8cb189ba2afcb1fa0f274d2c104dde09398.tar.xz
Change ledger syntax regex to work with BSD regex
-rw-r--r--config.def.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h
index 27b8486..bf91b8d 100644
--- 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 */
"^[=~].*",