From e99031f3e2cfcaaabb2c4cb721d95fe8c31ddc55 Mon Sep 17 00:00:00 2001 From: Qi Xiao Date: Mon, 26 Jun 2017 19:47:10 +0200 Subject: [PATCH] Use understore in filenames. --- edit/{api-utils.go => api_utils.go} | 0 edit/{arg-completers.go => arg_completers.go} | 0 edit/{compl-getopt.go => compl_getopt.go} | 0 edit/{distribute-width.go => distribute_width.go} | 0 edit/{history-value.go => history_value.go} | 0 edit/{listing-common_test.go => listing_common_test.go} | 0 edit/{ls-colors.go => ls_colors.go} | 0 edit/{ls-colors_string.go => ls_colors_string.go} | 0 edit/{ls-colors_test.go => ls_colors_test.go} | 0 edit/{raw-insert.go => raw_insert.go} | 0 edit/tty/{async-reader.go => async_reader.go} | 0 edit/tty/{async-reader_test.go => async_reader_test.go} | 0 edit/tty/{read-unit.go => read_unit.go} | 0 eval/{args-walker.go => args_walker.go} | 0 eval/{builtin-fn.go => builtin_fn.go} | 0 eval/{builtin-namespace.go => builtin_namespace.go} | 0 eval/{builtin-special.go => builtin_special.go} | 0 eval/{compilation-error.go => compilation_error.go} | 0 eval/{compile-lvalue.go => compile_lvalue.go} | 0 eval/{compile-op.go => compile_op.go} | 0 eval/{compile-value.go => compile_value.go} | 9 ++++++--- eval/{daemon-namespace.go => daemon_namespace.go} | 0 eval/{embedded-modules.go => embedded_modules.go} | 0 eval/{env-path-list.go => env_path_list.go} | 0 eval/{external-cmd.go => external_cmd.go} | 0 store/{schema-version.go => schema_version.go} | 0 store/{shared-var.go => shared_var.go} | 0 store/{shared-var_test.go => shared_var_test.go} | 0 util/{in-tempdir.go => in_tempdir.go} | 0 util/{source-context.go => source_context.go} | 0 web/{embedded-html.go => embedded_html.go} | 0 31 files changed, 6 insertions(+), 3 deletions(-) rename edit/{api-utils.go => api_utils.go} (100%) rename edit/{arg-completers.go => arg_completers.go} (100%) rename edit/{compl-getopt.go => compl_getopt.go} (100%) rename edit/{distribute-width.go => distribute_width.go} (100%) rename edit/{history-value.go => history_value.go} (100%) rename edit/{listing-common_test.go => listing_common_test.go} (100%) rename edit/{ls-colors.go => ls_colors.go} (100%) rename edit/{ls-colors_string.go => ls_colors_string.go} (100%) rename edit/{ls-colors_test.go => ls_colors_test.go} (100%) rename edit/{raw-insert.go => raw_insert.go} (100%) rename edit/tty/{async-reader.go => async_reader.go} (100%) rename edit/tty/{async-reader_test.go => async_reader_test.go} (100%) rename edit/tty/{read-unit.go => read_unit.go} (100%) rename eval/{args-walker.go => args_walker.go} (100%) rename eval/{builtin-fn.go => builtin_fn.go} (100%) rename eval/{builtin-namespace.go => builtin_namespace.go} (100%) rename eval/{builtin-special.go => builtin_special.go} (100%) rename eval/{compilation-error.go => compilation_error.go} (100%) rename eval/{compile-lvalue.go => compile_lvalue.go} (100%) rename eval/{compile-op.go => compile_op.go} (100%) rename eval/{compile-value.go => compile_value.go} (98%) rename eval/{daemon-namespace.go => daemon_namespace.go} (100%) rename eval/{embedded-modules.go => embedded_modules.go} (100%) rename eval/{env-path-list.go => env_path_list.go} (100%) rename eval/{external-cmd.go => external_cmd.go} (100%) rename store/{schema-version.go => schema_version.go} (100%) rename store/{shared-var.go => shared_var.go} (100%) rename store/{shared-var_test.go => shared_var_test.go} (100%) rename util/{in-tempdir.go => in_tempdir.go} (100%) rename util/{source-context.go => source_context.go} (100%) rename web/{embedded-html.go => embedded_html.go} (100%) diff --git a/edit/api-utils.go b/edit/api_utils.go similarity index 100% rename from edit/api-utils.go rename to edit/api_utils.go diff --git a/edit/arg-completers.go b/edit/arg_completers.go similarity index 100% rename from edit/arg-completers.go rename to edit/arg_completers.go diff --git a/edit/compl-getopt.go b/edit/compl_getopt.go similarity index 100% rename from edit/compl-getopt.go rename to edit/compl_getopt.go diff --git a/edit/distribute-width.go b/edit/distribute_width.go similarity index 100% rename from edit/distribute-width.go rename to edit/distribute_width.go diff --git a/edit/history-value.go b/edit/history_value.go similarity index 100% rename from edit/history-value.go rename to edit/history_value.go diff --git a/edit/listing-common_test.go b/edit/listing_common_test.go similarity index 100% rename from edit/listing-common_test.go rename to edit/listing_common_test.go diff --git a/edit/ls-colors.go b/edit/ls_colors.go similarity index 100% rename from edit/ls-colors.go rename to edit/ls_colors.go diff --git a/edit/ls-colors_string.go b/edit/ls_colors_string.go similarity index 100% rename from edit/ls-colors_string.go rename to edit/ls_colors_string.go diff --git a/edit/ls-colors_test.go b/edit/ls_colors_test.go similarity index 100% rename from edit/ls-colors_test.go rename to edit/ls_colors_test.go diff --git a/edit/raw-insert.go b/edit/raw_insert.go similarity index 100% rename from edit/raw-insert.go rename to edit/raw_insert.go diff --git a/edit/tty/async-reader.go b/edit/tty/async_reader.go similarity index 100% rename from edit/tty/async-reader.go rename to edit/tty/async_reader.go diff --git a/edit/tty/async-reader_test.go b/edit/tty/async_reader_test.go similarity index 100% rename from edit/tty/async-reader_test.go rename to edit/tty/async_reader_test.go diff --git a/edit/tty/read-unit.go b/edit/tty/read_unit.go similarity index 100% rename from edit/tty/read-unit.go rename to edit/tty/read_unit.go diff --git a/eval/args-walker.go b/eval/args_walker.go similarity index 100% rename from eval/args-walker.go rename to eval/args_walker.go diff --git a/eval/builtin-fn.go b/eval/builtin_fn.go similarity index 100% rename from eval/builtin-fn.go rename to eval/builtin_fn.go diff --git a/eval/builtin-namespace.go b/eval/builtin_namespace.go similarity index 100% rename from eval/builtin-namespace.go rename to eval/builtin_namespace.go diff --git a/eval/builtin-special.go b/eval/builtin_special.go similarity index 100% rename from eval/builtin-special.go rename to eval/builtin_special.go diff --git a/eval/compilation-error.go b/eval/compilation_error.go similarity index 100% rename from eval/compilation-error.go rename to eval/compilation_error.go diff --git a/eval/compile-lvalue.go b/eval/compile_lvalue.go similarity index 100% rename from eval/compile-lvalue.go rename to eval/compile_lvalue.go diff --git a/eval/compile-op.go b/eval/compile_op.go similarity index 100% rename from eval/compile-op.go rename to eval/compile_op.go diff --git a/eval/compile-value.go b/eval/compile_value.go similarity index 98% rename from eval/compile-value.go rename to eval/compile_value.go index 21e76729..f822afa6 100644 --- a/eval/compile-value.go +++ b/eval/compile_value.go @@ -262,9 +262,12 @@ func (cp *compiler) primary(n *parse.Primary) ValuesOpFunc { } return variable(qname) case parse.Wildcard: - vs := []Value{GlobPattern{ - glob.Pattern{[]glob.Segment{wildcardToSegment(n.SourceText())}, ""}, - 0, nil}} + seg, err := wildcardToSegment(n.SourceText()) + if err != nil { + cp.errorf("%s", err) + } + vs := []Value{ + GlobPattern{glob.Pattern{[]glob.Segment{seg}, ""}, 0, nil}} return func(ec *EvalCtx) []Value { return vs } diff --git a/eval/daemon-namespace.go b/eval/daemon_namespace.go similarity index 100% rename from eval/daemon-namespace.go rename to eval/daemon_namespace.go diff --git a/eval/embedded-modules.go b/eval/embedded_modules.go similarity index 100% rename from eval/embedded-modules.go rename to eval/embedded_modules.go diff --git a/eval/env-path-list.go b/eval/env_path_list.go similarity index 100% rename from eval/env-path-list.go rename to eval/env_path_list.go diff --git a/eval/external-cmd.go b/eval/external_cmd.go similarity index 100% rename from eval/external-cmd.go rename to eval/external_cmd.go diff --git a/store/schema-version.go b/store/schema_version.go similarity index 100% rename from store/schema-version.go rename to store/schema_version.go diff --git a/store/shared-var.go b/store/shared_var.go similarity index 100% rename from store/shared-var.go rename to store/shared_var.go diff --git a/store/shared-var_test.go b/store/shared_var_test.go similarity index 100% rename from store/shared-var_test.go rename to store/shared_var_test.go diff --git a/util/in-tempdir.go b/util/in_tempdir.go similarity index 100% rename from util/in-tempdir.go rename to util/in_tempdir.go diff --git a/util/source-context.go b/util/source_context.go similarity index 100% rename from util/source-context.go rename to util/source_context.go diff --git a/web/embedded-html.go b/web/embedded_html.go similarity index 100% rename from web/embedded-html.go rename to web/embedded_html.go