summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/parser_helper.ml
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-06-28 08:04:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-06-28 08:04:11 +0000
commitf350421afc41b86767bbf231f41d0e3a2095a2c9 (patch)
treec984e4b027a386c9716a6700843de9adf63b5e9b /perl_checker.src/parser_helper.ml
parenteb7b9f404f2405a1cb152fac39101200ec3b9d98 (diff)
downloadperl-MDK-Common-f350421afc41b86767bbf231f41d0e3a2095a2c9.tar
perl-MDK-Common-f350421afc41b86767bbf231f41d0e3a2095a2c9.tar.gz
perl-MDK-Common-f350421afc41b86767bbf231f41d0e3a2095a2c9.tar.bz2
perl-MDK-Common-f350421afc41b86767bbf231f41d0e3a2095a2c9.tar.xz
perl-MDK-Common-f350421afc41b86767bbf231f41d0e3a2095a2c9.zip
many perl_checker enhancements and cleanup
Diffstat (limited to 'perl_checker.src/parser_helper.ml')
-rw-r--r--perl_checker.src/parser_helper.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml
index 1f30eb5..8a81bda 100644
--- a/perl_checker.src/parser_helper.ml
+++ b/perl_checker.src/parser_helper.ml
@@ -337,7 +337,7 @@ let sp_same esp1 esp2 =
else if esp2.spaces <> Space_0 then sp_p esp1
let function_to_context word_alone = function
- | "map" | "grep" | "grep_index" | "map_index" -> M_array
+ | "map" | "grep" | "grep_index" | "map_index" | "uniq" | "uniq_" -> M_array
| "partition" -> M_tuple [ M_ref M_array ; M_ref M_array ]
| "find" -> M_unknown_scalar
| "any" | "every" -> M_bool
@@ -836,7 +836,7 @@ let call_raw force_non_builtin_func (e, para) =
| [ List(String _ :: _) ] -> die_rule "don't use interpolated translated string, use %s or %d instead"
| _ -> die_rule (sprintf "%s() must be used with a string" f))
- | "map" | "grep" | "grep_index" | "map_index" | "partition"
+ | "map" | "grep" | "grep_index" | "map_index" | "partition" | "uniq_"
| "find"
| "any" | "every"
| "find_index"