Skip to content

Add Lotus 1-2-3 type support#548

Open
fhwvtqdc2q-svg wants to merge 1 commit into
Genivia:masterfrom
fhwvtqdc2q-svg:copilot/lotus-support
Open

Add Lotus 1-2-3 type support#548
fhwvtqdc2q-svg wants to merge 1 commit into
Genivia:masterfrom
fhwvtqdc2q-svg:copilot/lotus-support

Conversation

@fhwvtqdc2q-svg

Copy link
Copy Markdown

Adds Lotus 1-2-3 file-type entries and surfaces the requested workspace-version error message in config loading.\n\nCo-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 25, 2026 07:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends ugrep’s --file-type type table with Lotus 1-2-3 file extensions and updates config-loading failure output to include an additional workspace-version-related message.

Changes:

  • Added lotus / Lotus file-type entries with Lotus 1-2-3 extensions and a magic-bytes signature for the capitalized variant.
  • Added new std::cerr error lines in load_config() when config parsing fails or when a config file cannot be read.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/ugrep.cpp
{ "lex", "l,ll,lmm,lpp,lxx", NULL, NULL },
{ "lisp", "lisp,lsp", NULL, NULL },
{ "lotus", "wk1,wk2,wk3,wk4,wks,123", NULL, NULL },
{ "Lotus", "wk1,wk2,wk3,wk4,wks", NULL, "\\x00\\x00\\x02\\x00|\\x00\\x00\\x1a\\x00|\\x00\\x00\\x04\\x00" },
Comment thread src/ugrep.cpp
Comment on lines 5010 to +5014
if (errors)
{
std::cerr << "ugrep: Failed to resolve workspace version in " << config_file << '\n';
exit(EXIT_ERROR);
}
Comment thread src/ugrep.cpp
Comment on lines +5018 to 5019
std::cerr << "ugrep: Failed to resolve workspace version: cannot read " << flag_config << '\n';
error("option --config: cannot read", flag_config);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants