src/Pure/Isar/outer_parse.ML
changeset 8077 5c7b133fd26f
parent 7930 220892918bd1
child 8146 3243f2261d4b
equal deleted inserted replaced
8076:ef78716f39ef 8077:5c7b133fd26f
   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