diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-04-28 08:57:49 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-04-28 08:57:49 +0000 |
commit | f8bcbb0dbc3cb056d765305abf4fc2afa99b39a0 (patch) | |
tree | 1b650d098390eb132264cff3a6ae745adb887f2b /perl_checker.src/parser_helper.ml | |
parent | 3eb7bc406404aa2e8ecd7e59e6fc16b4767a9840 (diff) | |
download | perl-MDK-Common-f8bcbb0dbc3cb056d765305abf4fc2afa99b39a0.tar perl-MDK-Common-f8bcbb0dbc3cb056d765305abf4fc2afa99b39a0.tar.gz perl-MDK-Common-f8bcbb0dbc3cb056d765305abf4fc2afa99b39a0.tar.bz2 perl-MDK-Common-f8bcbb0dbc3cb056d765305abf4fc2afa99b39a0.tar.xz perl-MDK-Common-f8bcbb0dbc3cb056d765305abf4fc2afa99b39a0.zip |
- do check_simple_pattern() directly in from_PATTERN()
- don't die, log instead for some regexp expressions
Diffstat (limited to 'perl_checker.src/parser_helper.ml')
-rw-r--r-- | perl_checker.src/parser_helper.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml index 0bba0d9..1e26878 100644 --- a/perl_checker.src/parser_helper.ml +++ b/perl_checker.src/parser_helper.ml @@ -963,8 +963,10 @@ let from_PATTERN parse { any = (s, opts) ; pos = pos } = else if str_ends_with s ".*$" then warn_rule (sprintf "you can remove \"%s\" at the end of your regexp" ".*$") | _ -> ()); - [ String(re, raw_pos2pos pos) ; - Raw_string(opts, raw_pos2pos pos) ] + let pattern = [ String(re, raw_pos2pos pos) ; Raw_string(opts, raw_pos2pos pos) ] in + check_simple_pattern pattern; + pattern + let from_PATTERN_SUBST parse { any = (s1, s2, opts) ; pos = pos } = [ String(parse_interpolated parse s1, raw_pos2pos pos) ; String(parse_interpolated parse s2, raw_pos2pos pos) ; |