Created
June 10, 2013 10:21
-
-
Save raphink/5747757 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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