aboutsummaryrefslogtreecommitdiff
path: root/httpd/patterns.c
AgeCommit message (Collapse)Author
2016-08-15syncReyk Floeter
2015-08-18syncReyk Floeter
2015-07-26str_find_aux() might return a negative numberLeandro Pereira
It might return the return value of match_error(), which returns (-1).
2015-07-16sync with -current during c2k15Reyk Floeter
2015-06-23sync with -currentReyk Floeter
2015-06-23Use strndup instead of calloc + memcpy.Reyk Floeter
From Leandro Pereira (@lafp on twitter)
2015-06-23Merge branch 'experiment-2' into patternsReyk Floeter
2015-06-23add a new control for repetitor itemsSébastien Marie
- add a counter for limiting the search for repetitor items ('*', '+', '-' and '?') - add test case for this new kind of error
2015-06-23add '+' to limited matchdepthSébastien Marie
- revert "normal" call to optimized-tail-call-recursion for '*', '?' and '-' - add a "pattern too complex" test to !singlematch() branch, so that it is limited on call numbers.
2015-06-22don't do tail-call-recursive every timeSébastien Marie
- switch '*', '?' and '-' to normal call, in order to pass into "too complex" check - remove assert() - on error, quit early
2015-06-22several cosmetics fixes + add a new error checkingSébastien Marie
- there is no need to escape "%" with "%%" in error message - corrects a comment - add a check for error
2015-06-21propagate error from classend()Sébastien Marie
an error could be setted in classend(). check and propagate it if any.
2015-06-20Changing luaL_error() calls to match_error() required slightlyReyk Floeter
different semantics as we cannot just abort as Lua does. So we have to check return values carefully and I missed a few in the transition. Patch by Sebastien Marie
2015-06-20capture_to_close() wasn't checked (it returns -1 on error) and causedReyk Floeter
a panic when using a ")(" pattern. Found by Sebastien Marie
2015-06-20Experimental support for rewrites using Lua's lean pattern matching ↵Reyk Floeter
implementation.