code / bp

Lines4.3K C3.3K Markdown541 YAML273 make110 Shell77 Lua54
(5 lines)
1 # The ordered choice operator (/) picks the first choice that matches
2 # Example: bp '{"cabaret"/"cab"}' matches either "cabaret" or "cab"
3 # Note: if a match occurs, the options to the right will *never* be attempted,
4 # so bp '{"cab"/"cabaret"}' will always match "cab" instead of "cabaret"
5 bp '{"foo" / "bar"}'