Skip to content

Instantly share code, notes, and snippets.

@stepancheg
Created July 28, 2012 21:03
Show Gist options
  • Save stepancheg/3194778 to your computer and use it in GitHub Desktop.
Save stepancheg/3194778 to your computer and use it in GitHub Desktop.
diff --git a/lib-clay/parsing/combinators/generic/generic.clay b/lib-clay/parsing/combinators/generic/generic.clay
index 24cac60..84a7c6d 100644
--- a/lib-clay/parsing/combinators/generic/generic.clay
+++ b/lib-clay/parsing/combinators/generic/generic.clay
@@ -414,6 +414,6 @@ optSeparatedListStrict(#TokenInput, forward _separator:Separator, forward _eleme
alias T = ParseResult(TokenInput, Element);
return modify(
x => maybe(move(x), y => move(y), () => Vector[T]()),
- optional(separatedListStrict(_separator, _element)),
+ optional(TokenInput, separatedListStrict(TokenInput, _separator, _element)),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment