summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-04-10 03:11:09 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-04-10 03:11:09 -0700
commitd228557c3c400ba7a81ba0b0fd867ec78bb35015 (patch)
tree0a5aaca7ead1d53d89a30fab76b2263838cd2f98 /lib.c
parentd26540493a85fe2f4e85da81504cc0264df0c11f (diff)
downloadtxr-d228557c3c400ba7a81ba0b0fd867ec78bb35015.tar.gz
txr-d228557c3c400ba7a81ba0b0fd867ec78bb35015.tar.bz2
txr-d228557c3c400ba7a81ba0b0fd867ec78bb35015.zip
* eval.c (eval_init): Expose regex-compile and regexp as intrinsics.
* lib.c (obj_init): Change spelling of nongreedy operator and put it into the user package so that it is available for use with regex-compile. * regex.c (match_regex, search_regex): Bugfix: optional start position argument argument not defaulting to zero. * txr.1: Documented regex-compile and regexp. * txr.vim: Highlighting regex-compile and regexp.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 3b116464..f858df16 100644
--- a/lib.c
+++ b/lib.c
@@ -4115,7 +4115,7 @@ static void obj_init(void)
var_s = intern(lit("var"), system_package);
expr_s = intern(lit("expr"), system_package);
regex_s = intern(lit("regex"), system_package);
- nongreedy_s = intern(lit("nongreedy"), system_package);
+ nongreedy_s = intern(lit("ng0+"), user_package);
compiled_regex_s = intern(lit("compiled-regex"), system_package);
quote_s = intern(lit("quote"), system_package);
qquote_s = intern(lit("qquote"), system_package);