equal
deleted
inserted
replaced
159 val text = group "text" (short_ident || long_ident || sym_ident || string || verbatim); |
159 val text = group "text" (short_ident || long_ident || sym_ident || string || verbatim); |
160 |
160 |
161 |
161 |
162 (* formal comments *) |
162 (* formal comments *) |
163 |
163 |
164 val comment = text >> Comment.plain; |
164 val comment = text >> (Comment.plain o Library.single); |
165 val marg_comment = Scan.optional ($$$ "--" |-- comment) Comment.none; |
165 val marg_comment = Scan.repeat ($$$ "--" |-- text) >> Comment.plain; |
166 |
166 |
167 val interest = Scan.optional ($$$ "%%" >> K Comment.no_interest || |
167 val interest = Scan.optional ($$$ "%%" >> K Comment.no_interest || |
168 $$$ "%" |-- Scan.optional nat 1 >> Comment.interest) Comment.default_interest; |
168 $$$ "%" |-- Scan.optional nat 1 >> Comment.interest) Comment.default_interest; |
169 |
169 |
170 |
170 |