Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
[Fix] [Parser] Require a space between path arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-shatskyi committed Jun 1, 2016
1 parent 6fc75fd commit 10d2740
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Autocompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ import {environmentVariable} from "./plugins/autocompletion_providers/Environmen
export const makeGrammar = (aliases: Dictionary<string>) => {
const exec = sequence(
choice(mapObject(commandDescriptions, (key, value) => decorate(string(key), compose(description(value), style(styles.executable))))),
optionalContinuation(many1(choice([relativeFilePath, environmentVariable])))
optionalContinuation(many1(sequence(
choice([
relativeFilePath,
environmentVariable,
]),
spacesWithoutSuggestion
)))
);

const sudo = sequence(executable("sudo"), command);
Expand Down

0 comments on commit 10d2740

Please sign in to comment.