Skip to content

Instantly share code, notes, and snippets.

@raphink
Created June 10, 2013 10:21
Show Gist options
  • Save raphink/5747757 to your computer and use it in GitHub Desktop.
Save raphink/5747757 to your computer and use it in GitHub Desktop.
module Heredoc =
let entry =
let tag = del /[A-Za-z]+\n/ "EOF\n"
in let var = store Rx.word . Util.eol
in let heredoc = Util.del_str "<<"
. square tag var tag
in [ key Rx.word . Sep.space_equal . heredoc . Util.eol ]
test entry get "key = <<EOF
var
EOF
" = ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment