equal
deleted
inserted
replaced
1109 | _ => error ("Malformed annotation: " ^ quote s)); |
1109 | _ => error ("Malformed annotation: " ^ quote s)); |
1110 |
1110 |
1111 |
1111 |
1112 structure P = OuterParse and K = OuterKeyword; |
1112 structure P = OuterParse and K = OuterKeyword; |
1113 |
1113 |
1114 val _ = OuterSyntax.keywords ["attach", "file", "contains"]; |
1114 val _ = List.app OuterKeyword.keyword ["attach", "file", "contains"]; |
1115 |
1115 |
1116 fun strip_whitespace s = implode (fst (take_suffix (equal "\n" orf equal " ") |
1116 fun strip_whitespace s = implode (fst (take_suffix (equal "\n" orf equal " ") |
1117 (snd (take_prefix (equal "\n" orf equal " ") (explode s))))) ^ "\n"; |
1117 (snd (take_prefix (equal "\n" orf equal " ") (explode s))))) ^ "\n"; |
1118 |
1118 |
1119 val parse_attach = Scan.repeat (P.$$$ "attach" |-- |
1119 val parse_attach = Scan.repeat (P.$$$ "attach" |-- |