author | wenzelm |
Mon, 04 Aug 2008 22:55:10 +0200 | |
changeset 27737 | 302e9c8c489b |
parent 27736 | 3703dbd0cdea |
child 27738 | 66596d7aa899 |
--- a/src/Pure/Isar/outer_parse.ML Mon Aug 04 22:55:08 2008 +0200 +++ b/src/Pure/Isar/outer_parse.ML Mon Aug 04 22:55:10 2008 +0200 @@ -136,7 +136,8 @@ val not_eof = Scan.one T.not_eof; -fun position scan = (Scan.ahead not_eof >> T.position_of) -- scan >> Library.swap; +fun position scan = + (Scan.ahead not_eof >> (Position.encode_range o T.range_of)) -- scan >> Library.swap; fun kind k = group (T.str_of_kind k) (Scan.one (T.is_kind k) >> T.val_of);