Skip to content

Commit

Permalink
fish_completions: add missing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
l4zygreed committed Oct 27, 2023
1 parent 549ac68 commit 5f5e9e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions completions/just.fish
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ function __fish_just_complete_recipes
gsub(/^[[:space:]]+|[[:space:]]+$/, "", args);
if (match(args, /#.*/)) {
desc = substr(args, RSTART+2, RLENGTH)
args = substr(args, 0, RSTART-1)
desc = substr(args, RSTART+2, RLENGTH);
args = substr(args, 0, RSTART-1);
gsub(/^[[:space:]]+|[[:space:]]+$/, "", args);
}
gsub(/\+|=[`\'"][^`\'"]*[`\'"]/, "", args)
gsub(/ /, ",", args)
gsub(/\+|=[`\'"][^`\'"]*[`\'"]/, "", args);
gsub(/ /, ",", args);
if (args != ""){
args = "Args: " args
args = "Args: " args;
}
if (args != "" && desc != "") {
delim = "; "
delim = "; ";
}
print command "\t" args delim desc
Expand Down
12 changes: 6 additions & 6 deletions src/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ pub(crate) const FISH_RECIPE_COMPLETIONS: &str = r#"function __fish_just_complet
gsub(/^[[:space:]]+|[[:space:]]+$/, "", args);
if (match(args, /#.*/)) {
desc = substr(args, RSTART+2, RLENGTH)
args = substr(args, 0, RSTART-1)
desc = substr(args, RSTART+2, RLENGTH);
args = substr(args, 0, RSTART-1);
gsub(/^[[:space:]]+|[[:space:]]+$/, "", args);
}
gsub(/\+|=[`\'"][^`\'"]*[`\'"]/, "", args)
gsub(/ /, ",", args)
gsub(/\+|=[`\'"][^`\'"]*[`\'"]/, "", args);
gsub(/ /, ",", args);
if (args != ""){
args = "Args: " args
args = "Args: " args;
}
if (args != "" && desc != "") {
delim = "; "
delim = "; ";
}
print command "\t" args delim desc
Expand Down

0 comments on commit 5f5e9e5

Please sign in to comment.